#04022E#04022E

#04022E is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.8% C 0.087 H 272.0°. Best body text is #FFFFFF at 19.94:1 contrast (WCAG AA passes).

Color values

HEX#04022E
RGBrgb(4, 2, 46)
HSLhsl(243, 92%, 9%)
HSVhsv(243, 96%, 18%)
CMYKcmyk(91.3%, 95.7%, 0%, 82%)
CIE-LABlab(2.41, 12.76, -25.90)
CIE-LCHlch(2.41, 28.88, 296.23°)
OKLaboklab(14.81% 0.0031 -0.0865)
OKLCHoklch(14.81% 0.087 272)
XYZxyz(0.5648, 0.2664, 2.6059)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04022E #2C2E02
analogous
#02162E #04022E #1A022E
triadic
#04022E #2E0402 #022E04
tetradic
#04022E #2E0216 #2C2E02 #022E1A
square
#04022E #2E0216 #2C2E02 #022E1A
split-complementary
#04022E #2E1A02 #162E02
monochromatic
#03011D #03011D #04022E #090569 #0E07A3

Accessibility & contrast

On white

19.94
#04022E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#04022E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04022E
19.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04022E#FFFFFF#000000##FFFFFF
##04022E1.0019.941.0519.94
#FFFFFF19.941.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2F
Deuteranopia (green-blind)
#00072D
Tritanopia (blue-blind)
#000E17
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #04022e;
/* rgb */ color: rgb(4, 2, 46);
/* oklch */ color: oklch(14.8% 0.087 272.0);
Tailwind
colors: {
  custom: {
    50: '#4a4767',
    500: '#04022e',
    950: '#000000',
  },
}
SCSS
$custom: #04022e;
$custom-light: #4a4767;
$custom-dark: #000000;
JSON
{
  "hex": "#04022e",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 46
  },
  "hsl": {
    "h": 242.727,
    "s": 91.667,
    "l": 9.412
  },
  "oklch": {
    "l": 0.14813,
    "c": 0.08656,
    "h": 272
  },
  "luminance": 0.00266
}

Semantic roles & 50–950 ramp

primary
#04022E
secondary
#6F7319
accent
#FF29F5
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04022E

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

Preview Lab → · Contrast checker → · Palette generator →

#04022E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva