#040C32#040C32

#040C32 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.8% C 0.076 H 266.9°. Best body text is #FFFFFF at 19.03:1 contrast (WCAG AA passes).

Color values

HEX#040C32
RGBrgb(4, 12, 50)
HSLhsl(230, 85%, 11%)
HSVhsv(230, 92%, 20%)
CMYKcmyk(92%, 76%, 0%, 80.4%)
CIE-LABlab(4.69, 10.81, -25.25)
CIE-LCHlch(4.69, 27.47, 293.17°)
OKLaboklab(17.83% -0.0041 -0.0761)
OKLCHoklch(17.83% 0.076 266.9)
XYZxyz(0.7571, 0.5190, 3.0773)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C32 #322A04
analogous
#042332 #040C32 #130432
triadic
#040C32 #32040C #0C3204
tetradic
#040C32 #320423 #322A04 #043213
square
#040C32 #320423 #322A04 #043213
split-complementary
#040C32 #321304 #233204
monochromatic
#02071C #02071C #040C32 #091A6B #0D27A3

Accessibility & contrast

On white

19.03
#040C32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#040C32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040C32
19.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040C32#FFFFFF#000000##FFFFFF
##040C321.0019.031.1019.03
#FFFFFF19.031.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001233
Deuteranopia (green-blind)
#000E31
Tritanopia (blue-blind)
#00161D
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040c32;
/* rgb */ color: rgb(4, 12, 50);
/* oklch */ color: oklch(17.8% 0.076 266.9);
Tailwind
colors: {
  custom: {
    50: '#4b4c6a',
    500: '#040c32',
    950: '#000000',
  },
}
SCSS
$custom: #040c32;
$custom-light: #4b4c6a;
$custom-dark: #000000;
JSON
{
  "hex": "#040c32",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 50
  },
  "hsl": {
    "h": 229.565,
    "s": 85.185,
    "l": 10.588
  },
  "oklch": {
    "l": 0.17827,
    "c": 0.07621,
    "h": 266.9
  },
  "luminance": 0.00519
}

Semantic roles & 50–950 ramp

primary
#040C32
secondary
#74651D
accent
#D72CFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040C32

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

Preview Lab → · Contrast checker → · Palette generator →

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