#040A21#040A21

#040A21 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 15.5% C 0.050 H 266.7°. Best body text is #FFFFFF at 19.62:1 contrast (WCAG AA passes).

Color values

HEX#040A21
RGBrgb(4, 10, 33)
HSLhsl(228, 78%, 7%)
HSVhsv(228, 88%, 13%)
CMYKcmyk(87.9%, 69.7%, 0%, 87.1%)
CIE-LABlab(3.19, 4.00, -14.69)
CIE-LCHlch(3.19, 15.23, 285.25°)
OKLaboklab(15.47% -0.0029 -0.0498)
OKLCHoklch(15.47% 0.05 266.7)
XYZxyz(0.4330, 0.3527, 1.4838)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A21 #211B04
analogous
#041921 #040A21 #0D0421
triadic
#040A21 #21040A #0A2104
tetradic
#040A21 #210419 #211B04 #04210D
square
#040A21 #210419 #211B04 #04210D
split-complementary
#040A21 #210D04 #192104
monochromatic
#03081B #03081B #040A21 #0B1B58 #112B8E

Accessibility & contrast

On white

19.62
#040A21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#040A21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040A21
19.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A21#FFFFFF#000000##FFFFFF
##040A211.0019.621.0719.62
#FFFFFF19.621.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010D22
Deuteranopia (green-blind)
#000A21
Tritanopia (blue-blind)
#000F13
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040a21;
/* rgb */ color: rgb(4, 10, 33);
/* oklch */ color: oklch(15.5% 0.050 266.7);
Tailwind
colors: {
  custom: {
    50: '#484b5c',
    500: '#040a21',
    950: '#000000',
  },
}
SCSS
$custom: #040a21;
$custom-light: #484b5c;
$custom-dark: #000000;
JSON
{
  "hex": "#040a21",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 33
  },
  "hsl": {
    "h": 227.586,
    "s": 78.378,
    "l": 7.255
  },
  "oklch": {
    "l": 0.15468,
    "c": 0.0499,
    "h": 266.7
  },
  "luminance": 0.00353
}

Semantic roles & 50–950 ramp

primary
#040A21
secondary
#64551D
accent
#CD33F5
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040A21

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

Preview Lab → · Contrast checker → · Palette generator →

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