#040B2A#040B2A

#040B2A is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.7% C 0.064 H 267.1°. Best body text is #FFFFFF at 19.33:1 contrast (WCAG AA passes).

Color values

HEX#040B2A
RGBrgb(4, 11, 42)
HSLhsl(229, 83%, 9%)
HSVhsv(229, 90%, 16%)
CMYKcmyk(90.5%, 73.8%, 0%, 83.5%)
CIE-LABlab(3.90, 7.23, -20.50)
CIE-LCHlch(3.90, 21.74, 289.44°)
OKLaboklab(16.68% -0.0033 -0.0642)
OKLCHoklch(16.68% 0.064 267.1)
XYZxyz(0.5875, 0.4323, 2.2425)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B2A #2A2304
analogous
#041E2A #040B2A #10042A
triadic
#040B2A #2A040B #0B2A04
tetradic
#040B2A #2A041E #2A2304 #042A10
square
#040B2A #2A041E #2A2304 #042A10
split-complementary
#040B2A #2A1004 #1E2A04
monochromatic
#03071C #03071C #040B2A #091A62 #0F289A

Accessibility & contrast

On white

19.33
#040B2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B2A
19.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B2A#FFFFFF#000000##FFFFFF
##040B2A1.0019.331.0919.33
#FFFFFF19.331.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102B
Deuteranopia (green-blind)
#000C29
Tritanopia (blue-blind)
#001318
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040b2a;
/* rgb */ color: rgb(4, 11, 42);
/* oklch */ color: oklch(16.7% 0.064 267.1);
Tailwind
colors: {
  custom: {
    50: '#494b63',
    500: '#040b2a',
    950: '#000000',
  },
}
SCSS
$custom: #040b2a;
$custom-light: #494b63;
$custom-dark: #000000;
JSON
{
  "hex": "#040b2a",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 42
  },
  "hsl": {
    "h": 228.947,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.1668,
    "c": 0.06432,
    "h": 267.1
  },
  "luminance": 0.00432
}

Semantic roles & 50–950 ramp

primary
#040B2A
secondary
#6D5E1D
accent
#D42FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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