#040F33#040F33

#040F33 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.7% C 0.073 H 265.1°. Best body text is #FFFFFF at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#040F33
RGBrgb(4, 15, 51)
HSLhsl(226, 85%, 11%)
HSVhsv(226, 92%, 20%)
CMYKcmyk(92.2%, 70.6%, 0%, 80%)
CIE-LABlab(5.48, 9.91, -24.72)
CIE-LCHlch(5.48, 26.63, 291.84°)
OKLaboklab(18.66% -0.0063 -0.0731)
OKLCHoklch(18.66% 0.073 265.1)
XYZxyz(0.8182, 0.6064, 3.2052)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F33 #332804
analogous
#042633 #040F33 #100433
triadic
#040F33 #33040F #0F3304
tetradic
#040F33 #330426 #332804 #043310
square
#040F33 #330426 #332804 #043310
split-complementary
#040F33 #331004 #263304
monochromatic
#02081C #02081C #040F33 #08206C #0D30A4

Accessibility & contrast

On white

18.73
#040F33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#040F33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040F33
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F33#FFFFFF#000000##FFFFFF
##040F331.0018.731.1218.73
#FFFFFF18.731.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001434
Deuteranopia (green-blind)
#001032
Tritanopia (blue-blind)
#00181F
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #040f33;
/* rgb */ color: rgb(4, 15, 51);
/* oklch */ color: oklch(18.7% 0.073 265.1);
Tailwind
colors: {
  custom: {
    50: '#4c4d6b',
    500: '#040f33',
    950: '#000000',
  },
}
SCSS
$custom: #040f33;
$custom-light: #4c4d6b;
$custom-dark: #000000;
JSON
{
  "hex": "#040f33",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 51
  },
  "hsl": {
    "h": 225.957,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18655,
    "c": 0.07336,
    "h": 265.1
  },
  "luminance": 0.00606
}

Semantic roles & 50–950 ramp

primary
#040F33
secondary
#75611D
accent
#CB2CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040F33

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#040F33 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva