#040D2A#040D2A

#040D2A is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.2% C 0.061 H 265.2°. Best body text is #FFFFFF at 19.16:1 contrast (WCAG AA passes).

Color values

HEX#040D2A
RGBrgb(4, 13, 42)
HSLhsl(226, 83%, 9%)
HSVhsv(226, 90%, 16%)
CMYKcmyk(90.5%, 69%, 0%, 83.5%)
CIE-LABlab(4.34, 6.34, -19.81)
CIE-LCHlch(4.34, 20.80, 287.75°)
OKLaboklab(17.19% -0.0051 -0.0609)
OKLCHoklch(17.19% 0.061 265.2)
XYZxyz(0.6118, 0.4808, 2.2506)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D2A #2A2104
analogous
#04202A #040D2A #0E042A
triadic
#040D2A #2A040D #0D2A04
tetradic
#040D2A #2A0420 #2A2104 #042A0E
square
#040D2A #2A0420 #2A2104 #042A0E
split-complementary
#040D2A #2A0E04 #202A04
monochromatic
#03091C #03091C #040D2A #091E62 #0F309A

Accessibility & contrast

On white

19.16
#040D2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040D2A
19.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D2A#FFFFFF#000000##FFFFFF
##040D2A1.0019.161.1019.16
#FFFFFF19.161.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#000D29
Tritanopia (blue-blind)
#001419
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040d2a;
/* rgb */ color: rgb(4, 13, 42);
/* oklch */ color: oklch(17.2% 0.061 265.2);
Tailwind
colors: {
  custom: {
    50: '#494c63',
    500: '#040d2a',
    950: '#000000',
  },
}
SCSS
$custom: #040d2a;
$custom-light: #494c63;
$custom-dark: #000000;
JSON
{
  "hex": "#040d2a",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 42
  },
  "hsl": {
    "h": 225.789,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17191,
    "c": 0.06115,
    "h": 265.2
  },
  "luminance": 0.00481
}

Semantic roles & 50–950 ramp

primary
#040D2A
secondary
#6D5A1D
accent
#C92FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #040D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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