#040F32#040F32

#040F32 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.5% C 0.072 H 264.9°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#040F32
RGBrgb(4, 15, 50)
HSLhsl(226, 85%, 11%)
HSVhsv(226, 92%, 20%)
CMYKcmyk(92%, 70%, 0%, 80.4%)
CIE-LABlab(5.40, 9.35, -24.11)
CIE-LCHlch(5.40, 25.86, 291.20°)
OKLaboklab(18.55% -0.0063 -0.0714)
OKLCHoklch(18.55% 0.072 264.9)
XYZxyz(0.7964, 0.5977, 3.0904)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F32 #322704
analogous
#042632 #040F32 #100432
triadic
#040F32 #32040F #0F3204
tetradic
#040F32 #320426 #322704 #043210
square
#040F32 #320426 #322704 #043210
split-complementary
#040F32 #321004 #263204
monochromatic
#02091C #02091C #040F32 #09206B #0D31A3

Accessibility & contrast

On white

18.76
#040F32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040F32
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F32#FFFFFF#000000##FFFFFF
##040F321.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001433
Deuteranopia (green-blind)
#001031
Tritanopia (blue-blind)
#00181E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #040f32;
/* rgb */ color: rgb(4, 15, 50);
/* oklch */ color: oklch(18.5% 0.072 264.9);
Tailwind
colors: {
  custom: {
    50: '#4c4d6a',
    500: '#040f32',
    950: '#000000',
  },
}
SCSS
$custom: #040f32;
$custom-light: #4c4d6a;
$custom-dark: #000000;
JSON
{
  "hex": "#040f32",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 50
  },
  "hsl": {
    "h": 225.652,
    "s": 85.185,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18547,
    "c": 0.0717,
    "h": 264.9
  },
  "luminance": 0.00598
}

Semantic roles & 50–950 ramp

primary
#040F32
secondary
#74601D
accent
#CA2CFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040F32

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

Preview Lab → · Contrast checker → · Palette generator →

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