#04022C#04022C

#04022C is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 14.5% C 0.084 H 272.6°. Best body text is #FFFFFF at 20.00:1 contrast (WCAG AA passes).

Color values

HEX#04022C
RGBrgb(4, 2, 44)
HSLhsl(243, 91%, 9%)
HSVhsv(243, 95%, 17%)
CMYKcmyk(90.9%, 95.5%, 0%, 82.7%)
CIE-LABlab(2.27, 11.78, -24.61)
CIE-LCHlch(2.27, 27.28, 295.59°)
OKLaboklab(14.51% 0.0038 -0.0836)
OKLCHoklch(14.51% 0.084 272.6)
XYZxyz(0.5262, 0.2510, 2.4031)
Luminance0.0025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04022C #2A2C02
analogous
#02152C #04022C #19022C
triadic
#04022C #2C0402 #022C04
tetradic
#04022C #2C0215 #2A2C02 #022C19
square
#04022C #2C0215 #2A2C02 #022C19
split-complementary
#04022C #2C1902 #152C02
monochromatic
#03011D #03011D #04022C #090567 #0F07A1

Accessibility & contrast

On white

20.00
#04022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04022C
20.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04022C#FFFFFF#000000##FFFFFF
##04022C1.0020.001.0520.00
#FFFFFF20.001.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04022c;
/* rgb */ color: rgb(4, 2, 44);
/* oklch */ color: oklch(14.5% 0.084 272.6);
Tailwind
colors: {
  custom: {
    50: '#494765',
    500: '#04022c',
    950: '#000000',
  },
}
SCSS
$custom: #04022c;
$custom-light: #494765;
$custom-dark: #000000;
JSON
{
  "hex": "#04022c",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 242.857,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.14506,
    "c": 0.08372,
    "h": 272.6
  },
  "luminance": 0.00251
}

Semantic roles & 50–950 ramp

primary
#04022C
secondary
#6D7119
accent
#FF29F5
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #04022C

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

Preview Lab → · Contrast checker → · Palette generator →

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