#040B39#040B39

#040B39 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.5% C 0.089 H 267.4°. Best body text is #FFFFFF at 18.88:1 contrast (WCAG AA passes).

Color values

HEX#040B39
RGBrgb(4, 11, 57)
HSLhsl(232, 87%, 12%)
HSVhsv(232, 93%, 22%)
CMYKcmyk(93%, 80.7%, 0%, 77.6%)
CIE-LABlab(5.06, 15.30, -29.78)
CIE-LCHlch(5.06, 33.48, 297.20°)
OKLaboklab(18.46% -0.004 -0.0886)
OKLCHoklch(18.46% 0.089 267.4)
XYZxyz(0.9080, 0.5605, 3.9304)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B39 #393204
analogous
#042639 #040B39 #180439
triadic
#040B39 #39040B #0B3904
tetradic
#040B39 #390426 #393204 #043918
square
#040B39 #390426 #393204 #043918
split-complementary
#040B39 #391804 #263904
monochromatic
#02061D #02061D #040B39 #081672 #0C21AB

Accessibility & contrast

On white

18.88
#040B39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B39
18.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B39#FFFFFF#000000##FFFFFF
##040B391.0018.881.1118.88
#FFFFFF18.881.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143A
Deuteranopia (green-blind)
#000E38
Tritanopia (blue-blind)
#001820
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040b39;
/* rgb */ color: rgb(4, 11, 57);
/* oklch */ color: oklch(18.5% 0.089 267.4);
Tailwind
colors: {
  custom: {
    50: '#4e4b70',
    500: '#040b39',
    950: '#000000',
  },
}
SCSS
$custom: #040b39;
$custom-light: #4e4b70;
$custom-dark: #000000;
JSON
{
  "hex": "#040b39",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 57
  },
  "hsl": {
    "h": 232.075,
    "s": 86.885,
    "l": 11.961
  },
  "oklch": {
    "l": 0.18457,
    "c": 0.08869,
    "h": 267.4
  },
  "luminance": 0.00561
}

Semantic roles & 50–950 ramp

primary
#040B39
secondary
#7B6F1E
accent
#E12BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #040B39

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

Preview Lab → · Contrast checker → · Palette generator →

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