#040B32#040B32

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

Color values

HEX#040B32
RGBrgb(4, 11, 50)
HSLhsl(231, 85%, 11%)
HSVhsv(231, 92%, 20%)
CMYKcmyk(92%, 78%, 0%, 80.4%)
CIE-LABlab(4.47, 11.24, -25.59)
CIE-LCHlch(4.47, 27.95, 293.71°)
OKLaboklab(17.6% -0.0034 -0.0776)
OKLCHoklch(17.6% 0.078 267.5)
XYZxyz(0.7453, 0.4954, 3.0733)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040B32 #322B04
analogous
#042232 #040B32 #140432
triadic
#040B32 #32040B #0B3204
tetradic
#040B32 #320422 #322B04 #043214
square
#040B32 #320422 #322B04 #043214
split-complementary
#040B32 #321404 #223204
monochromatic
#02061C #02061C #040B32 #09176B #0D24A3

Accessibility & contrast

On white

19.11
#040B32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040B32
19.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040B32#FFFFFF#000000##FFFFFF
##040B321.0019.111.1019.11
#FFFFFF19.111.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001233
Deuteranopia (green-blind)
#000D31
Tritanopia (blue-blind)
#00151D
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040b32;
/* rgb */ color: rgb(4, 11, 50);
/* oklch */ color: oklch(17.6% 0.078 267.5);
Tailwind
colors: {
  custom: {
    50: '#4b4b6a',
    500: '#040b32',
    950: '#000000',
  },
}
SCSS
$custom: #040b32;
$custom-light: #4b4b6a;
$custom-dark: #000000;
JSON
{
  "hex": "#040b32",
  "rgb": {
    "r": 4,
    "g": 11,
    "b": 50
  },
  "hsl": {
    "h": 230.87,
    "s": 85.185,
    "l": 10.588
  },
  "oklch": {
    "l": 0.176,
    "c": 0.07768,
    "h": 267.5
  },
  "luminance": 0.00495
}

Semantic roles & 50–950 ramp

primary
#040B32
secondary
#74671D
accent
#DC2CFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #040B32

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

Preview Lab → · Contrast checker → · Palette generator →

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