#040B36#040B36

#040B36 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.084 H 267.5°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#040B36
RGBrgb(4, 11, 54)
HSLhsl(232, 86%, 11%)
HSVhsv(232, 93%, 21%)
CMYKcmyk(92.6%, 79.6%, 0%, 78.8%)
CIE-LABlab(4.80, 13.53, -28.02)
CIE-LCHlch(4.80, 31.11, 295.78°)
OKLaboklab(18.08% -0.0037 -0.084)
OKLCHoklch(18.08% 0.084 267.5)
XYZxyz(0.8354, 0.5314, 3.5479)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B36 #362F04
analogous
#042436 #040B36 #160436
triadic
#040B36 #36040B #0B3604
tetradic
#040B36 #360424 #362F04 #043616
square
#040B36 #360424 #362F04 #043616
split-complementary
#040B36 #361604 #243604
monochromatic
#02061C #02061C #040B36 #08176F #0C22A8

Accessibility & contrast

On white

18.98
#040B36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#040B36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040B36
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B36#FFFFFF#000000##FFFFFF
##040B361.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001337
Deuteranopia (green-blind)
#000E35
Tritanopia (blue-blind)
#00171F
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #040b36;
/* rgb */ color: rgb(4, 11, 54);
/* oklch */ color: oklch(18.1% 0.084 267.5);
Tailwind
colors: {
  custom: {
    50: '#4d4b6d',
    500: '#040b36',
    950: '#000000',
  },
}
SCSS
$custom: #040b36;
$custom-light: #4d4b6d;
$custom-dark: #000000;
JSON
{
  "hex": "#040b36",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 54
  },
  "hsl": {
    "h": 231.6,
    "s": 86.207,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18084,
    "c": 0.08404,
    "h": 267.5
  },
  "luminance": 0.00531
}

Semantic roles & 50–950 ramp

primary
#040B36
secondary
#786B1E
accent
#DF2BFC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020107
muted
#78777A

Preview Lab

Preview with #040B36

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

Preview Lab → · Contrast checker → · Palette generator →

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