#04022B#04022B

#04022B is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 14.4% C 0.082 H 272.9°. Best body text is #FFFFFF at 20.02:1 contrast (WCAG AA passes).

Color values

HEX#04022B
RGBrgb(4, 2, 43)
HSLhsl(243, 91%, 9%)
HSVhsv(243, 95%, 17%)
CMYKcmyk(90.7%, 95.3%, 0%, 83.1%)
CIE-LABlab(2.20, 11.31, -23.95)
CIE-LCHlch(2.20, 26.49, 295.28°)
OKLaboklab(14.35% 0.0041 -0.0822)
OKLCHoklch(14.35% 0.082 272.9)
XYZxyz(0.5077, 0.2436, 2.3053)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04022B #292B02
analogous
#02152B #04022B #19022B
triadic
#04022B #2B0402 #022B04
tetradic
#04022B #2B0215 #292B02 #022B19
square
#04022B #2B0215 #292B02 #022B19
split-complementary
#04022B #2B1902 #152B02
monochromatic
#03011D #03011D #04022B #090565 #0F07A0

Accessibility & contrast

On white

20.02
#04022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04022B
20.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04022B#FFFFFF#000000##FFFFFF
##04022B1.0020.021.0520.02
#FFFFFF20.021.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2C
Deuteranopia (green-blind)
#00062A
Tritanopia (blue-blind)
#000D16
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #04022b;
/* rgb */ color: rgb(4, 2, 43);
/* oklch */ color: oklch(14.4% 0.082 272.9);
Tailwind
colors: {
  custom: {
    50: '#494764',
    500: '#04022b',
    950: '#000000',
  },
}
SCSS
$custom: #04022b;
$custom-light: #494764;
$custom-dark: #000000;
JSON
{
  "hex": "#04022b",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 242.927,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.14354,
    "c": 0.08229,
    "h": 272.9
  },
  "luminance": 0.00244
}

Semantic roles & 50–950 ramp

primary
#04022B
secondary
#6C7019
accent
#FF29F5
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #04022B

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

Preview Lab → · Contrast checker → · Palette generator →

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