Recognised as Colour
#0C228F
- #0C228F
- Blue
- Dark
- Nearest: Midnight blue
#0C228F is a blue with RGB values 12, 34, 143 and HSL 230°, 85%, 30%. It is a dark colour, so white text on it reaches 12.8:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#0C228F#0C228F
HEX#0C228F
RGBrgb(12, 34, 143)
RGB (0–1)0.0471, 0.1333, 0.5608
RGB percentages4.7%, 13.3%, 56.1%
HSLhsl(229.9, 84.5%, 30.4%)
HSV / HSBhsv(229.9, 91.6%, 56.1%)
CMYK91.6%, 76.2%, 0%, 43.9%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer795,279
CSS custom property--colour: #0C228F;
Brightness & contrast
Relative luminance0.03205WCAG 2.x, 0 is black and 1 is white
Perceived brightness55.3 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 12.8:1
Contrast with white12.8:1WCAG normal text: AAA
Contrast with black1.64:1WCAG normal text: Fail
Greyscale equivalent#252525
Inverted#F3DD70
Colour vision & accessibility
Distinguishable without hueShifts in lightness toonever rely on hue alone to carry meaning
Contrast with white, large text12.8:1WCAG large text: AAA
Contrast with black, large text1.64:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#8F790C
Analogous#0C638F, #380C8F
Triadic#8F0C22, #228F0C
Split complementary#8F380C, #638F0C
Tetradic#8F0C63, #8F790C, #0C8F38
Tints, shades & saturation
Channel breakdown
R12
G34
B143
Red12 (4.7%)
Green34 (13.3%)
Blue143 (56.1%)
Hue229.92°
Saturation (HSL)84.52%
Lightness30.39%
Dominant channelBlue
Hex per channelR 0C · G 22 · B 8F
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Nerdulate something else
Nothing in mind? Surprise me · today’s page