#040B2E#040B2E

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

Color values

HEX#040B2E
RGBrgb(4, 11, 46)
HSLhsl(230, 84%, 10%)
HSVhsv(230, 91%, 18%)
CMYKcmyk(91.3%, 76.1%, 0%, 82%)
CIE-LABlab(4.18, 9.15, -23.09)
CIE-LCHlch(4.18, 24.84, 291.61°)
OKLaboklab(17.13% -0.0033 -0.071)
OKLCHoklch(17.13% 0.071 267.4)
XYZxyz(0.6627, 0.4623, 2.6386)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B2E #2E2704
analogous
#04202E #040B2E #12042E
triadic
#040B2E #2E040B #0B2E04
tetradic
#040B2E #2E0420 #2E2704 #042E12
square
#040B2E #2E0420 #2E2704 #042E12
split-complementary
#040B2E #2E1204 #202E04
monochromatic
#02071C #02071C #040B2E #091866 #0E269F

Accessibility & contrast

On white

19.22
#040B2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B2E
19.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B2E#FFFFFF#000000##FFFFFF
##040B2E1.0019.221.0919.22
#FFFFFF19.221.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#000D2D
Tritanopia (blue-blind)
#00141A
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040b2e;
/* rgb */ color: rgb(4, 11, 46);
/* oklch */ color: oklch(17.1% 0.071 267.4);
Tailwind
colors: {
  custom: {
    50: '#4a4b67',
    500: '#040b2e',
    950: '#000000',
  },
}
SCSS
$custom: #040b2e;
$custom-light: #4a4b67;
$custom-dark: #000000;
JSON
{
  "hex": "#040b2e",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 46
  },
  "hsl": {
    "h": 230,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.17131,
    "c": 0.07111,
    "h": 267.4
  },
  "luminance": 0.00462
}

Semantic roles & 50–950 ramp

primary
#040B2E
secondary
#71631D
accent
#D82EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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