Recognised as Colour
#04064F
- #04064F
- Blue
- Dark
- Nearest: Midnight blue
#04064F is a blue with RGB values 4, 6, 79 and HSL 238°, 90%, 16%. It is a dark colour, so white text on it reaches 18.4:1 contrast (AAA for normal text). The nearest named colour is Midnight blue.
Colour values
#04064F#04064F
HEX#04064F
RGBrgb(4, 6, 79)
RGB (0–1)0.0157, 0.0235, 0.3098
RGB percentages1.6%, 2.4%, 31%
HSLhsl(238.4, 90.4%, 16.3%)
HSV / HSBhsv(238.4, 94.9%, 31%)
CMYK94.9%, 92.4%, 0%, 69%≈naive device-independent conversion; real print needs an ICC profile
24-bit integer263,759
CSS custom property--colour: #04064F;
Brightness & contrast
Relative luminance0.00721WCAG 2.x, 0 is black and 1 is white
Perceived brightness27.2 of 255ITU-R BT.601 weighting
Light or darkDark
Best text colour on this backgroundWhitecontrast 18.35:1
Contrast with white18.35:1WCAG normal text: AAA
Contrast with black1.14:1WCAG normal text: Fail
Greyscale equivalent#0B0B0B
Inverted#FBF9B0
Colour vision & accessibility
Distinguishable without hueYesnever rely on hue alone to carry meaning
Contrast with white, large text18.35:1WCAG large text: AAA
Contrast with black, large text1.14:1WCAG large text: Fail
Named colours
Hue familyblue
CSS keyword usableNo exact keyword
Colour harmonies
Complementary#4F4D04
Analogous#042C4F, #27044F
Triadic#4F0406, #064F04
Split complementary#4F2704, #2C4F04
Tetradic#4F042C, #4F4D04, #044F27
Tints, shades & saturation
Channel breakdown
R4
G6
B79
Red4 (1.6%)
Green6 (2.4%)
Blue79 (31%)
Hue238.4°
Saturation (HSL)90.36%
Lightness16.27%
Dominant channelBlue
Hex per channelR 04 · G 06 · B 4F
Keep nerding
Every link below is a page Nerdulator can generate from what it already knows about this value.
Harmonies
Similar named colours
Nerdulate something else
Nothing in mind? Surprise me · today’s page