#040C33#040C33

#040C33 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.9% C 0.078 H 267.0°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#040C33
RGBrgb(4, 12, 51)
HSLhsl(230, 85%, 11%)
HSVhsv(230, 92%, 20%)
CMYKcmyk(92.2%, 76.5%, 0%, 80%)
CIE-LABlab(4.77, 11.36, -25.86)
CIE-LCHlch(4.77, 28.25, 293.71°)
OKLaboklab(17.94% -0.0041 -0.0777)
OKLCHoklch(17.94% 0.078 267)
XYZxyz(0.7789, 0.5277, 3.1921)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C33 #332B04
analogous
#042333 #040C33 #130433
triadic
#040C33 #33040C #0C3304
tetradic
#040C33 #330423 #332B04 #043313
square
#040C33 #330423 #332B04 #043313
split-complementary
#040C33 #331304 #233304
monochromatic
#02071C #02071C #040C33 #08196C #0D27A4

Accessibility & contrast

On white

18.99
#040C33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#040C33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040C33
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040C33#FFFFFF#000000##FFFFFF
##040C331.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040c33;
/* rgb */ color: rgb(4, 12, 51);
/* oklch */ color: oklch(17.9% 0.078 267.0);
Tailwind
colors: {
  custom: {
    50: '#4c4c6b',
    500: '#040c33',
    950: '#000000',
  },
}
SCSS
$custom: #040c33;
$custom-light: #4c4c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#040c33",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 51
  },
  "hsl": {
    "h": 229.787,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.17944,
    "c": 0.07784,
    "h": 267
  },
  "luminance": 0.00528
}

Semantic roles & 50–950 ramp

primary
#040C33
secondary
#75661D
accent
#D82CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040C33

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

Preview Lab → · Contrast checker → · Palette generator →

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