#040A22#040A22

#040A22 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 15.6% C 0.052 H 266.9°. Best body text is #FFFFFF at 19.60:1 contrast (WCAG AA passes).

Color values

HEX#040A22
RGBrgb(4, 10, 34)
HSLhsl(228, 79%, 7%)
HSVhsv(228, 88%, 13%)
CMYKcmyk(88.2%, 70.6%, 0%, 86.7%)
CIE-LABlab(3.24, 4.37, -15.40)
CIE-LCHlch(3.24, 16.00, 285.84°)
OKLaboklab(15.57% -0.0028 -0.0517)
OKLCHoklch(15.57% 0.052 266.9)
XYZxyz(0.4472, 0.3583, 1.5587)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040A22 #221C04
analogous
#041922 #040A22 #0D0422
triadic
#040A22 #22040A #0A2204
tetradic
#040A22 #220419 #221C04 #04220D
square
#040A22 #220419 #221C04 #04220D
split-complementary
#040A22 #220D04 #192204
monochromatic
#03081B #03081B #040A22 #0A1A59 #112A90

Accessibility & contrast

On white

19.60
#040A22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040A22
19.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040A22#FFFFFF#000000##FFFFFF
##040A221.0019.601.0719.60
#FFFFFF19.601.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D23
Deuteranopia (green-blind)
#000A22
Tritanopia (blue-blind)
#001014
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #040a22;
/* rgb */ color: rgb(4, 10, 34);
/* oklch */ color: oklch(15.6% 0.052 266.9);
Tailwind
colors: {
  custom: {
    50: '#484b5d',
    500: '#040a22',
    950: '#000000',
  },
}
SCSS
$custom: #040a22;
$custom-light: #484b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#040a22",
  "rgb": {
    "r": 4,
    "g": 10,
    "b": 34
  },
  "hsl": {
    "h": 228,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.15569,
    "c": 0.05173,
    "h": 266.9
  },
  "luminance": 0.00358
}

Semantic roles & 50–950 ramp

primary
#040A22
secondary
#65561D
accent
#CE32F5
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040A22

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

Preview Lab → · Contrast checker → · Palette generator →

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