#040D2B#040D2B

#040D2B is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.3% C 0.063 H 265.4°. Best body text is #FFFFFF at 19.13:1 contrast (WCAG AA passes).

Color values

HEX#040D2B
RGBrgb(4, 13, 43)
HSLhsl(226, 83%, 9%)
HSVhsv(226, 91%, 17%)
CMYKcmyk(90.7%, 69.8%, 0%, 83.1%)
CIE-LABlab(4.41, 6.80, -20.47)
CIE-LCHlch(4.41, 21.57, 288.39°)
OKLaboklab(17.29% -0.005 -0.0627)
OKLCHoklch(17.29% 0.063 265.4)
XYZxyz(0.6299, 0.4880, 2.3460)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D2B #2B2204
analogous
#04212B #040D2B #0F042B
triadic
#040D2B #2B040D #0D2B04
tetradic
#040D2B #2B0421 #2B2204 #042B0F
square
#040D2B #2B0421 #2B2204 #042B0F
split-complementary
#040D2B #2B0F04 #212B04
monochromatic
#03081C #03081C #040D2B #091E63 #0E2F9B

Accessibility & contrast

On white

19.13
#040D2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#040D2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040D2B
19.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D2B#FFFFFF#000000##FFFFFF
##040D2B1.0019.131.1019.13
#FFFFFF19.131.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112C
Deuteranopia (green-blind)
#000D2A
Tritanopia (blue-blind)
#00141A
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040d2b;
/* rgb */ color: rgb(4, 13, 43);
/* oklch */ color: oklch(17.3% 0.063 265.4);
Tailwind
colors: {
  custom: {
    50: '#494c64',
    500: '#040d2b',
    950: '#000000',
  },
}
SCSS
$custom: #040d2b;
$custom-light: #494c64;
$custom-dark: #000000;
JSON
{
  "hex": "#040d2b",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 43
  },
  "hsl": {
    "h": 226.154,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17295,
    "c": 0.0629,
    "h": 265.4
  },
  "luminance": 0.00488
}

Semantic roles & 50–950 ramp

primary
#040D2B
secondary
#6E5B1D
accent
#CB2EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #040D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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