#040A20#040A20

#040A20 is a very dark, muted blue. Relative luminance 0.003; OKLCH L 15.4% C 0.048 H 266.4°. Best body text is #FFFFFF at 19.64:1 contrast (WCAG AA passes).

Color values

HEX#040A20
RGBrgb(4, 10, 32)
HSLhsl(227, 78%, 7%)
HSVhsv(227, 88%, 13%)
CMYKcmyk(87.5%, 68.8%, 0%, 87.5%)
CIE-LABlab(3.14, 3.66, -13.99)
CIE-LCHlch(3.14, 14.46, 284.66°)
OKLaboklab(15.37% -0.003 -0.0479)
OKLCHoklch(15.37% 0.048 266.4)
XYZxyz(0.4192, 0.3471, 1.4111)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A20 #201A04
analogous
#041820 #040A20 #0C0420
triadic
#040A20 #20040A #0A2004
tetradic
#040A20 #200418 #201A04 #04200C
square
#040A20 #200418 #201A04 #04200C
split-complementary
#040A20 #200C04 #182004
monochromatic
#03081B #03081B #040A20 #0B1B56 #122C8D

Accessibility & contrast

On white

19.64
#040A20 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A20
19.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A20#FFFFFF#000000##FFFFFF
##040A201.0019.641.0719.64
#FFFFFF19.641.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#010D21
Deuteranopia (green-blind)
#000A20
Tritanopia (blue-blind)
#000F13
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #040a20;
/* rgb */ color: rgb(4, 10, 32);
/* oklch */ color: oklch(15.4% 0.048 266.4);
Tailwind
colors: {
  custom: {
    50: '#484b5b',
    500: '#040a20',
    950: '#000000',
  },
}
SCSS
$custom: #040a20;
$custom-light: #484b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#040a20",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 32
  },
  "hsl": {
    "h": 227.143,
    "s": 77.778,
    "l": 7.059
  },
  "oklch": {
    "l": 0.15368,
    "c": 0.04805,
    "h": 266.4
  },
  "luminance": 0.00347
}

Semantic roles & 50–950 ramp

primary
#040A20
secondary
#63541D
accent
#CB34F4
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040A20

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

Preview Lab → · Contrast checker → · Palette generator →

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