#04022D#04022D

#04022D is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.7% C 0.085 H 272.3°. Best body text is #FFFFFF at 19.97:1 contrast (WCAG AA passes).

Color values

HEX#04022D
RGBrgb(4, 2, 45)
HSLhsl(243, 91%, 9%)
HSVhsv(243, 96%, 18%)
CMYKcmyk(91.1%, 95.6%, 0%, 82.4%)
CIE-LABlab(2.34, 12.27, -25.26)
CIE-LCHlch(2.34, 28.08, 295.91°)
OKLaboklab(14.66% 0.0034 -0.0851)
OKLCHoklch(14.66% 0.085 272.3)
XYZxyz(0.5453, 0.2586, 2.5033)
Luminance0.0026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04022D #2B2D02
analogous
#02162D #04022D #1A022D
triadic
#04022D #2D0402 #022D04
tetradic
#04022D #2D0216 #2B2D02 #022D1A
square
#04022D #2D0216 #2B2D02 #022D1A
split-complementary
#04022D #2D1A02 #162D02
monochromatic
#03011D #03011D #04022D #090568 #0E07A2

Accessibility & contrast

On white

19.97
#04022D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04022D
19.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04022D#FFFFFF#000000##FFFFFF
##04022D1.0019.971.0519.97
#FFFFFF19.971.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04022d;
/* rgb */ color: rgb(4, 2, 45);
/* oklch */ color: oklch(14.7% 0.085 272.3);
Tailwind
colors: {
  custom: {
    50: '#494766',
    500: '#04022d',
    950: '#000000',
  },
}
SCSS
$custom: #04022d;
$custom-light: #494766;
$custom-dark: #000000;
JSON
{
  "hex": "#04022d",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 45
  },
  "hsl": {
    "h": 242.791,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.14659,
    "c": 0.08515,
    "h": 272.3
  },
  "luminance": 0.00259
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #04022D

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

Preview Lab → · Contrast checker → · Palette generator →

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