#040D32#040D32

#040D32 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.075 H 266.3°. Best body text is #FFFFFF at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#040D32
RGBrgb(4, 13, 50)
HSLhsl(228, 85%, 11%)
HSVhsv(228, 92%, 20%)
CMYKcmyk(92%, 74%, 0%, 80.4%)
CIE-LABlab(4.91, 10.35, -24.89)
CIE-LCHlch(4.91, 26.96, 292.57°)
OKLaboklab(18.06% -0.0048 -0.0746)
OKLCHoklch(18.06% 0.075 266.3)
XYZxyz(0.7695, 0.5439, 3.0814)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D32 #322904
analogous
#042432 #040D32 #120432
triadic
#040D32 #32040D #0D3204
tetradic
#040D32 #320424 #322904 #043212
square
#040D32 #320424 #322904 #043212
split-complementary
#040D32 #321204 #243204
monochromatic
#02071C #02071C #040D32 #091C6B #0D2AA3

Accessibility & contrast

On white

18.94
#040D32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040D32
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D32#FFFFFF#000000##FFFFFF
##040D321.0018.941.1118.94
#FFFFFF18.941.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001333
Deuteranopia (green-blind)
#000E31
Tritanopia (blue-blind)
#00171D
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040d32;
/* rgb */ color: rgb(4, 13, 50);
/* oklch */ color: oklch(18.1% 0.075 266.3);
Tailwind
colors: {
  custom: {
    50: '#4b4c6a',
    500: '#040d32',
    950: '#000000',
  },
}
SCSS
$custom: #040d32;
$custom-light: #4b4c6a;
$custom-dark: #000000;
JSON
{
  "hex": "#040d32",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 50
  },
  "hsl": {
    "h": 228.261,
    "s": 85.185,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18061,
    "c": 0.07472,
    "h": 266.3
  },
  "luminance": 0.00544
}

Semantic roles & 50–950 ramp

primary
#040D32
secondary
#74631D
accent
#D32CFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040D32

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

Preview Lab → · Contrast checker → · Palette generator →

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