#040F22#040F22

#040F22 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 17.0% C 0.044 H 258.5°. Best body text is #FFFFFF at 19.15:1 contrast (WCAG AA passes).

Color values

HEX#040F22
RGBrgb(4, 15, 34)
HSLhsl(218, 79%, 7%)
HSVhsv(218, 88%, 13%)
CMYKcmyk(88.2%, 55.9%, 0%, 86.7%)
CIE-LABlab(4.36, 2.07, -13.67)
CIE-LCHlch(4.36, 13.82, 278.61°)
OKLaboklab(16.99% -0.0087 -0.0428)
OKLCHoklch(16.99% 0.044 258.5)
XYZxyz(0.5095, 0.4829, 1.5794)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040F22 #221704
analogous
#041E22 #040F22 #080422
triadic
#040F22 #22040F #0F2204
tetradic
#040F22 #22041E #221704 #042208
square
#040F22 #22041E #221704 #042208
split-complementary
#040F22 #220804 #1E2204
monochromatic
#030C1B #030C1B #040F22 #0A2759 #113F90

Accessibility & contrast

On white

19.15
#040F22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040F22
19.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040F22#FFFFFF#000000##FFFFFF
##040F221.0019.151.1019.15
#FFFFFF19.151.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061123
Deuteranopia (green-blind)
#030E22
Tritanopia (blue-blind)
#001316
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #040f22;
/* rgb */ color: rgb(4, 15, 34);
/* oklch */ color: oklch(17.0% 0.044 258.5);
Tailwind
colors: {
  custom: {
    50: '#484e5d',
    500: '#040f22',
    950: '#000000',
  },
}
SCSS
$custom: #040f22;
$custom-light: #484e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#040f22",
  "rgb": {
    "r": 4,
    "g": 15,
    "b": 34
  },
  "hsl": {
    "h": 218,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.16989,
    "c": 0.04365,
    "h": 258.5
  },
  "luminance": 0.00483
}

Semantic roles & 50–950 ramp

primary
#040F22
secondary
#654A1D
accent
#AE32F5
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040F22

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

Preview Lab → · Contrast checker → · Palette generator →

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