#040E22#040E22

#040E22 is a very dark, muted blue. Relative luminance 0.005; OKLCH L 16.7% C 0.045 H 260.5°. Best body text is #FFFFFF at 19.25:1 contrast (WCAG AA passes).

Color values

HEX#040E22
RGBrgb(4, 14, 34)
HSLhsl(220, 79%, 7%)
HSVhsv(220, 88%, 13%)
CMYKcmyk(88.2%, 58.8%, 0%, 86.7%)
CIE-LABlab(4.11, 2.58, -14.05)
CIE-LCHlch(4.11, 14.29, 280.40°)
OKLaboklab(16.7% -0.0075 -0.0446)
OKLCHoklch(16.7% 0.045 260.5)
XYZxyz(0.4957, 0.4553, 1.5748)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040E22 #221804
analogous
#041D22 #040E22 #090422
triadic
#040E22 #22040E #0E2204
tetradic
#040E22 #22041D #221804 #042209
square
#040E22 #22041D #221804 #042209
split-complementary
#040E22 #220904 #1D2204
monochromatic
#030B1B #030B1B #040E22 #0A2559 #113B90

Accessibility & contrast

On white

19.25
#040E22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#040E22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040E22
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040E22#FFFFFF#000000##FFFFFF
##040E221.0019.251.0919.25
#FFFFFF19.251.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051023
Deuteranopia (green-blind)
#020D22
Tritanopia (blue-blind)
#001316
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #040e22;
/* rgb */ color: rgb(4, 14, 34);
/* oklch */ color: oklch(16.7% 0.045 260.5);
Tailwind
colors: {
  custom: {
    50: '#484d5d',
    500: '#040e22',
    950: '#000000',
  },
}
SCSS
$custom: #040e22;
$custom-light: #484d5d;
$custom-dark: #000000;
JSON
{
  "hex": "#040e22",
  "rgb": {
    "r": 4,
    "g": 14,
    "b": 34
  },
  "hsl": {
    "h": 220,
    "s": 78.947,
    "l": 7.451
  },
  "oklch": {
    "l": 0.16696,
    "c": 0.0452,
    "h": 260.5
  },
  "luminance": 0.00455
}

Semantic roles & 50–950 ramp

primary
#040E22
secondary
#654D1D
accent
#B432F5
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000104
muted
#777779

Preview Lab

Preview with #040E22

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

Preview Lab → · Contrast checker → · Palette generator →

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