#040B2B#040B2B

#040B2B is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.8% C 0.066 H 267.2°. Best body text is #FFFFFF at 19.30:1 contrast (WCAG AA passes).

Color values

HEX#040B2B
RGBrgb(4, 11, 43)
HSLhsl(229, 83%, 9%)
HSVhsv(229, 91%, 17%)
CMYKcmyk(90.7%, 74.4%, 0%, 83.1%)
CIE-LABlab(3.97, 7.70, -21.16)
CIE-LCHlch(3.97, 22.51, 289.99°)
OKLaboklab(16.79% -0.0033 -0.066)
OKLCHoklch(16.79% 0.066 267.2)
XYZxyz(0.6056, 0.4395, 2.3379)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B2B #2B2404
analogous
#041F2B #040B2B #11042B
triadic
#040B2B #2B040B #0B2B04
tetradic
#040B2B #2B041F #2B2404 #042B11
square
#040B2B #2B041F #2B2404 #042B11
split-complementary
#040B2B #2B1104 #1F2B04
monochromatic
#03071C #03071C #040B2B #091963 #0E289B

Accessibility & contrast

On white

19.30
#040B2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040B2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040B2B
19.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B2B#FFFFFF#000000##FFFFFF
##040B2B1.0019.301.0919.30
#FFFFFF19.301.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#000C2A
Tritanopia (blue-blind)
#001319
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040b2b;
/* rgb */ color: rgb(4, 11, 43);
/* oklch */ color: oklch(16.8% 0.066 267.2);
Tailwind
colors: {
  custom: {
    50: '#494b64',
    500: '#040b2b',
    950: '#000000',
  },
}
SCSS
$custom: #040b2b;
$custom-light: #494b64;
$custom-dark: #000000;
JSON
{
  "hex": "#040b2b",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 43
  },
  "hsl": {
    "h": 229.231,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.16791,
    "c": 0.06604,
    "h": 267.2
  },
  "luminance": 0.0044
}

Semantic roles & 50–950 ramp

primary
#040B2B
secondary
#6E5F1D
accent
#D52EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #040B2B

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

Preview Lab → · Contrast checker → · Palette generator →

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