#040D2C#040D2C

#040D2C is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.4% C 0.065 H 265.6°. Best body text is #FFFFFF at 19.10:1 contrast (WCAG AA passes).

Color values

HEX#040D2C
RGBrgb(4, 13, 44)
HSLhsl(227, 83%, 9%)
HSVhsv(227, 91%, 17%)
CMYKcmyk(90.9%, 70.5%, 0%, 82.7%)
CIE-LABlab(4.47, 7.28, -21.11)
CIE-LCHlch(4.47, 22.33, 289.02°)
OKLaboklab(17.4% -0.005 -0.0644)
OKLCHoklch(17.4% 0.065 265.6)
XYZxyz(0.6485, 0.4954, 2.4438)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040D2C #2C2304
analogous
#04212C #040D2C #0F042C
triadic
#040D2C #2C040D #0D2C04
tetradic
#040D2C #2C0421 #2C2304 #042C0F
square
#040D2C #2C0421 #2C2304 #042C0F
split-complementary
#040D2C #2C0F04 #212C04
monochromatic
#03081C #03081C #040D2C #091E64 #0E2E9C

Accessibility & contrast

On white

19.10
#040D2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040D2C
19.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040D2C#FFFFFF#000000##FFFFFF
##040D2C1.0019.101.1019.10
#FFFFFF19.101.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112D
Deuteranopia (green-blind)
#000E2B
Tritanopia (blue-blind)
#00151A
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040d2c;
/* rgb */ color: rgb(4, 13, 44);
/* oklch */ color: oklch(17.4% 0.065 265.6);
Tailwind
colors: {
  custom: {
    50: '#4a4c65',
    500: '#040d2c',
    950: '#000000',
  },
}
SCSS
$custom: #040d2c;
$custom-light: #4a4c65;
$custom-dark: #000000;
JSON
{
  "hex": "#040d2c",
  "rgb": {
    "r": 4,
    "g": 13,
    "b": 44
  },
  "hsl": {
    "h": 226.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.17401,
    "c": 0.06462,
    "h": 265.6
  },
  "luminance": 0.00496
}

Semantic roles & 50–950 ramp

primary
#040D2C
secondary
#6F5C1D
accent
#CC2EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #040D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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