#040B2D#040B2D

#040B2D is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.0% C 0.069 H 267.3°. Best body text is #FFFFFF at 19.25:1 contrast (WCAG AA passes).

Color values

HEX#040B2D
RGBrgb(4, 11, 45)
HSLhsl(230, 84%, 10%)
HSVhsv(230, 91%, 18%)
CMYKcmyk(91.1%, 75.6%, 0%, 82.4%)
CIE-LABlab(4.11, 8.65, -22.45)
CIE-LCHlch(4.11, 24.06, 291.08°)
OKLaboklab(17.02% -0.0033 -0.0694)
OKLCHoklch(17.02% 0.069 267.3)
XYZxyz(0.6432, 0.4545, 2.5359)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B2D #2D2604
analogous
#04202D #040B2D #12042D
triadic
#040B2D #2D040B #0B2D04
tetradic
#040B2D #2D0420 #2D2604 #042D12
square
#040B2D #2D0420 #2D2604 #042D12
split-complementary
#040B2D #2D1204 #202D04
monochromatic
#02071C #02071C #040B2D #091965 #0E269D

Accessibility & contrast

On white

19.25
#040B2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B2D
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B2D#FFFFFF#000000##FFFFFF
##040B2D1.0019.251.0919.25
#FFFFFF19.251.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102E
Deuteranopia (green-blind)
#000C2C
Tritanopia (blue-blind)
#00141A
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040b2d;
/* rgb */ color: rgb(4, 11, 45);
/* oklch */ color: oklch(17.0% 0.069 267.3);
Tailwind
colors: {
  custom: {
    50: '#4a4b66',
    500: '#040b2d',
    950: '#000000',
  },
}
SCSS
$custom: #040b2d;
$custom-light: #4a4b66;
$custom-dark: #000000;
JSON
{
  "hex": "#040b2d",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 45
  },
  "hsl": {
    "h": 229.756,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.17016,
    "c": 0.06944,
    "h": 267.3
  },
  "luminance": 0.00455
}

Semantic roles & 50–950 ramp

primary
#040B2D
secondary
#70621D
accent
#D72EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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