#040B2F#040B2F

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

Color values

HEX#040B2F
RGBrgb(4, 11, 47)
HSLhsl(230, 84%, 10%)
HSVhsv(230, 91%, 18%)
CMYKcmyk(91.5%, 76.6%, 0%, 81.6%)
CIE-LABlab(4.25, 9.65, -23.72)
CIE-LCHlch(4.25, 25.61, 292.15°)
OKLaboklab(17.25% -0.0033 -0.0727)
OKLCHoklch(17.25% 0.073 267.4)
XYZxyz(0.6827, 0.4703, 2.7436)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B2F #2F2804
analogous
#04202F #040B2F #13042F
triadic
#040B2F #2F040B #0B2F04
tetradic
#040B2F #2F0420 #2F2804 #042F13
square
#040B2F #2F0420 #2F2804 #042F13
split-complementary
#040B2F #2F1304 #202F04
monochromatic
#02071C #02071C #040B2F #091867 #0E25A0

Accessibility & contrast

On white

19.20
#040B2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B2F
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B2F#FFFFFF#000000##FFFFFF
##040B2F1.0019.201.0919.20
#FFFFFF19.201.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#000D2E
Tritanopia (blue-blind)
#00141B
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040b2f;
/* rgb */ color: rgb(4, 11, 47);
/* oklch */ color: oklch(17.2% 0.073 267.4);
Tailwind
colors: {
  custom: {
    50: '#4a4b68',
    500: '#040b2f',
    950: '#000000',
  },
}
SCSS
$custom: #040b2f;
$custom-light: #4a4b68;
$custom-dark: #000000;
JSON
{
  "hex": "#040b2f",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 47
  },
  "hsl": {
    "h": 230.233,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.17246,
    "c": 0.07276,
    "h": 267.4
  },
  "luminance": 0.0047
}

Semantic roles & 50–950 ramp

primary
#040B2F
secondary
#72641D
accent
#D92DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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