#04022F#04022F

#04022F is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.0% C 0.088 H 271.8°. Best body text is #FFFFFF at 19.91:1 contrast (WCAG AA passes).

Color values

HEX#04022F
RGBrgb(4, 2, 47)
HSLhsl(243, 92%, 10%)
HSVhsv(243, 96%, 18%)
CMYKcmyk(91.5%, 95.7%, 0%, 81.6%)
CIE-LABlab(2.48, 13.27, -26.54)
CIE-LCHlch(2.48, 29.67, 296.56°)
OKLaboklab(14.97% 0.0027 -0.0879)
OKLCHoklch(14.97% 0.088 271.8)
XYZxyz(0.5847, 0.2744, 2.7109)
Luminance0.0027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04022F #2D2F02
analogous
#02172F #04022F #1B022F
triadic
#04022F #2F0402 #022F04
tetradic
#04022F #2F0217 #2D2F02 #022F1B
square
#04022F #2F0217 #2D2F02 #022F1B
split-complementary
#04022F #2F1B02 #172F02
monochromatic
#02011D #02011D #04022F #09046A #0E07A4

Accessibility & contrast

On white

19.91
#04022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04022F
19.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04022F#FFFFFF#000000##FFFFFF
##04022F1.0019.911.0519.91
#FFFFFF19.911.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B30
Deuteranopia (green-blind)
#00072E
Tritanopia (blue-blind)
#000F18
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #04022f;
/* rgb */ color: rgb(4, 2, 47);
/* oklch */ color: oklch(15.0% 0.088 271.8);
Tailwind
colors: {
  custom: {
    50: '#4a4768',
    500: '#04022f',
    950: '#000000',
  },
}
SCSS
$custom: #04022f;
$custom-light: #4a4768;
$custom-dark: #000000;
JSON
{
  "hex": "#04022f",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 242.667,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.14967,
    "c": 0.08796,
    "h": 271.8
  },
  "luminance": 0.00274
}

Semantic roles & 50–950 ramp

primary
#04022F
secondary
#707419
accent
#FF29F5
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04022F

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

Preview Lab → · Contrast checker → · Palette generator →

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