#040D33#040D33

#040D33 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.2% C 0.076 H 266.4°. Best body text is #FFFFFF at 18.91:1 contrast (WCAG AA passes).

Color values

HEX#040D33
RGBrgb(4, 13, 51)
HSLhsl(229, 85%, 11%)
HSVhsv(229, 92%, 20%)
CMYKcmyk(92.2%, 74.5%, 0%, 80%)
CIE-LABlab(4.99, 10.90, -25.50)
CIE-LCHlch(4.99, 27.74, 293.14°)
OKLaboklab(18.18% -0.0048 -0.0762)
OKLCHoklch(18.18% 0.076 266.4)
XYZxyz(0.7913, 0.5526, 3.1963)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D33 #332A04
analogous
#042433 #040D33 #120433
triadic
#040D33 #33040D #0D3304
tetradic
#040D33 #330424 #332A04 #043312
square
#040D33 #330424 #332A04 #043312
split-complementary
#040D33 #331204 #243304
monochromatic
#02071C #02071C #040D33 #081B6C #0D2AA4

Accessibility & contrast

On white

18.91
#040D33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040D33
18.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D33#FFFFFF#000000##FFFFFF
##040D331.0018.911.1118.91
#FFFFFF18.911.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001334
Deuteranopia (green-blind)
#000F32
Tritanopia (blue-blind)
#00171E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040d33;
/* rgb */ color: rgb(4, 13, 51);
/* oklch */ color: oklch(18.2% 0.076 266.4);
Tailwind
colors: {
  custom: {
    50: '#4c4c6b',
    500: '#040d33',
    950: '#000000',
  },
}
SCSS
$custom: #040d33;
$custom-light: #4c4c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#040d33",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 51
  },
  "hsl": {
    "h": 228.511,
    "s": 85.455,
    "l": 10.784
  },
  "oklch": {
    "l": 0.18175,
    "c": 0.07637,
    "h": 266.4
  },
  "luminance": 0.00553
}

Semantic roles & 50–950 ramp

primary
#040D33
secondary
#75641D
accent
#D42CFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040D33

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

Preview Lab → · Contrast checker → · Palette generator →

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