#040C22#040C22

#040C22 is a very dark, muted blue. Relative luminance 0.004; OKLCH L 16.1% C 0.048 H 264.0°. Best body text is #FFFFFF at 19.43:1 contrast (WCAG AA passes).

Color values

HEX#040C22
RGBrgb(4, 12, 34)
HSLhsl(224, 79%, 7%)
HSVhsv(224, 88%, 13%)
CMYKcmyk(88.2%, 64.7%, 0%, 86.7%)
CIE-LABlab(3.65, 3.52, -14.76)
CIE-LCHlch(3.65, 15.17, 283.43°)
OKLaboklab(16.12% -0.0051 -0.0482)
OKLCHoklch(16.12% 0.048 264)
XYZxyz(0.4702, 0.4042, 1.5663)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040C22 #221A04
analogous
#041B22 #040C22 #0B0422
triadic
#040C22 #22040C #0C2204
tetradic
#040C22 #22041B #221A04 #04220B
square
#040C22 #22041B #221A04 #04220B
split-complementary
#040C22 #220B04 #1B2204
monochromatic
#030A1B #030A1B #040C22 #0A1F59 #113390

Accessibility & contrast

On white

19.43
#040C22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#040C22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040C22
19.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040C22#FFFFFF#000000##FFFFFF
##040C221.0019.431.0819.43
#FFFFFF19.431.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#030F23
Deuteranopia (green-blind)
#000C22
Tritanopia (blue-blind)
#001115
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #040c22;
/* rgb */ color: rgb(4, 12, 34);
/* oklch */ color: oklch(16.1% 0.048 264.0);
Tailwind
colors: {
  custom: {
    50: '#484c5d',
    500: '#040c22',
    950: '#000000',
  },
}
SCSS
$custom: #040c22;
$custom-light: #484c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#040c22",
  "rgb": {
    "r": 4,
    "g": 12,
    "b": 34
  },
  "hsl": {
    "h": 224,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.16121,
    "c": 0.04844,
    "h": 264
  },
  "luminance": 0.00404
}

Semantic roles & 50–950 ramp

primary
#040C22
secondary
#65521D
accent
#C132F5
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040C22

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

Preview Lab → · Contrast checker → · Palette generator →

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