#040D37#040D37

#040D37 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.6% C 0.083 H 266.6°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#040D37
RGBrgb(4, 13, 55)
HSLhsl(229, 86%, 12%)
HSVhsv(229, 93%, 22%)
CMYKcmyk(92.7%, 76.4%, 0%, 78.4%)
CIE-LABlab(5.32, 13.21, -27.90)
CIE-LCHlch(5.32, 30.87, 295.33°)
OKLaboklab(18.64% -0.0049 -0.0827)
OKLCHoklch(18.64% 0.083 266.6)
XYZxyz(0.8833, 0.5894, 3.6809)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D37 #372E04
analogous
#042737 #040D37 #150437
triadic
#040D37 #37040D #0D3704
tetradic
#040D37 #370427 #372E04 #043715
square
#040D37 #370427 #372E04 #043715
split-complementary
#040D37 #371504 #273704
monochromatic
#02071D #02071D #040D37 #081A70 #0C28A9

Accessibility & contrast

On white

18.79
#040D37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040D37
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D37#FFFFFF#000000##FFFFFF
##040D371.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001438
Deuteranopia (green-blind)
#000F36
Tritanopia (blue-blind)
#001820
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #040d37;
/* rgb */ color: rgb(4, 13, 55);
/* oklch */ color: oklch(18.6% 0.083 266.6);
Tailwind
colors: {
  custom: {
    50: '#4d4c6e',
    500: '#040d37',
    950: '#000000',
  },
}
SCSS
$custom: #040d37;
$custom-light: #4d4c6e;
$custom-dark: #000000;
JSON
{
  "hex": "#040d37",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 55
  },
  "hsl": {
    "h": 229.412,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.1864,
    "c": 0.08281,
    "h": 266.6
  },
  "luminance": 0.00589
}

Semantic roles & 50–950 ramp

primary
#040D37
secondary
#79691E
accent
#D82BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #040D37

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

Preview Lab → · Contrast checker → · Palette generator →

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