#040B3A#040B3A

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

Color values

HEX#040B3A
RGBrgb(4, 11, 58)
HSLhsl(232, 87%, 12%)
HSVhsv(232, 93%, 23%)
CMYKcmyk(93.1%, 81%, 0%, 77.3%)
CIE-LABlab(5.15, 15.89, -30.36)
CIE-LCHlch(5.15, 34.27, 297.62°)
OKLaboklab(18.58% -0.0041 -0.0901)
OKLCHoklch(18.58% 0.09 267.4)
XYZxyz(0.9332, 0.5705, 4.0631)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B3A #3A3304
analogous
#04263A #040B3A #18043A
triadic
#040B3A #3A040B #0B3A04
tetradic
#040B3A #3A0426 #3A3304 #043A18
square
#040B3A #3A0426 #3A3304 #043A18
split-complementary
#040B3A #3A1804 #263A04
monochromatic
#02051D #02051D #040B3A #081673 #0C21AD

Accessibility & contrast

On white

18.85
#040B3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B3A
18.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B3A#FFFFFF#000000##FFFFFF
##040B3A1.0018.851.1118.85
#FFFFFF18.851.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143B
Deuteranopia (green-blind)
#000F39
Tritanopia (blue-blind)
#001821
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #040b3a;
/* rgb */ color: rgb(4, 11, 58);
/* oklch */ color: oklch(18.6% 0.090 267.4);
Tailwind
colors: {
  custom: {
    50: '#4f4b71',
    500: '#040b3a',
    950: '#000000',
  },
}
SCSS
$custom: #040b3a;
$custom-light: #4f4b71;
$custom-dark: #000000;
JSON
{
  "hex": "#040b3a",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 58
  },
  "hsl": {
    "h": 232.222,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.18583,
    "c": 0.09022,
    "h": 267.4
  },
  "luminance": 0.00571
}

Semantic roles & 50–950 ramp

primary
#040B3A
secondary
#7C701E
accent
#E22BFD
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020107
muted
#78777A

Preview Lab

Preview with #040B3A

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

Preview Lab → · Contrast checker → · Palette generator →

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