#040B3B#040B3B

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

Color values

HEX#040B3B
RGBrgb(4, 11, 59)
HSLhsl(232, 87%, 12%)
HSVhsv(232, 93%, 23%)
CMYKcmyk(93.2%, 81.4%, 0%, 76.9%)
CIE-LABlab(5.25, 16.46, -30.94)
CIE-LCHlch(5.25, 35.04, 298.02°)
OKLaboklab(18.71% -0.0042 -0.0916)
OKLCHoklch(18.71% 0.092 267.4)
XYZxyz(0.9589, 0.5808, 4.1984)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B3B #3B3404
analogous
#04263B #040B3B #19043B
triadic
#040B3B #3B040B #0B3B04
tetradic
#040B3B #3B0426 #3B3404 #043B19
square
#040B3B #3B0426 #3B3404 #043B19
split-complementary
#040B3B #3B1904 #263B04
monochromatic
#02051D #02051D #040B3B #081674 #0C20AE

Accessibility & contrast

On white

18.81
#040B3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B3B
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B3B#FFFFFF#000000##FFFFFF
##040B3B1.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143C
Deuteranopia (green-blind)
#000F3A
Tritanopia (blue-blind)
#001922
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040b3b;
/* rgb */ color: rgb(4, 11, 59);
/* oklch */ color: oklch(18.7% 0.092 267.4);
Tailwind
colors: {
  custom: {
    50: '#4f4b71',
    500: '#040b3b',
    950: '#000000',
  },
}
SCSS
$custom: #040b3b;
$custom-light: #4f4b71;
$custom-dark: #000000;
JSON
{
  "hex": "#040b3b",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 59
  },
  "hsl": {
    "h": 232.364,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.18709,
    "c": 0.09174,
    "h": 267.4
  },
  "luminance": 0.00581
}

Semantic roles & 50–950 ramp

primary
#040B3B
secondary
#7D711E
accent
#E32AFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020108
muted
#78777B

Preview Lab

Preview with #040B3B

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

Preview Lab → · Contrast checker → · Palette generator →

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