#040D2D#040D2D

#040D2D is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.5% C 0.066 H 265.8°. Best body text is #FFFFFF at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#040D2D
RGBrgb(4, 13, 45)
HSLhsl(227, 84%, 10%)
HSVhsv(227, 91%, 18%)
CMYKcmyk(91.1%, 71.1%, 0%, 82.4%)
CIE-LABlab(4.54, 7.76, -21.76)
CIE-LCHlch(4.54, 23.10, 289.63°)
OKLaboklab(17.51% -0.0049 -0.0662)
OKLCHoklch(17.51% 0.066 265.8)
XYZxyz(0.6675, 0.5030, 2.5440)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D2D #2D2404
analogous
#04222D #040D2D #10042D
triadic
#040D2D #2D040D #0D2D04
tetradic
#040D2D #2D0422 #2D2404 #042D10
square
#040D2D #2D0422 #2D2404 #042D10
split-complementary
#040D2D #2D1004 #222D04
monochromatic
#02081C #02081C #040D2D #091D65 #0E2D9D

Accessibility & contrast

On white

19.08
#040D2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040D2D
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D2D#FFFFFF#000000##FFFFFF
##040D2D1.0019.081.1019.08
#FFFFFF19.081.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122E
Deuteranopia (green-blind)
#000E2C
Tritanopia (blue-blind)
#00151B
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040d2d;
/* rgb */ color: rgb(4, 13, 45);
/* oklch */ color: oklch(17.5% 0.066 265.8);
Tailwind
colors: {
  custom: {
    50: '#4a4c66',
    500: '#040d2d',
    950: '#000000',
  },
}
SCSS
$custom: #040d2d;
$custom-light: #4a4c66;
$custom-dark: #000000;
JSON
{
  "hex": "#040d2d",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 45
  },
  "hsl": {
    "h": 226.829,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17508,
    "c": 0.06634,
    "h": 265.8
  },
  "luminance": 0.00503
}

Semantic roles & 50–950 ramp

primary
#040D2D
secondary
#705E1D
accent
#CD2EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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