#04213F#04213F

#04213F is a very dark, moderate cyan. Relative luminance 0.015; OKLCH L 24.6% C 0.067 H 252.4°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#04213F
RGBrgb(4, 33, 63)
HSLhsl(211, 88%, 13%)
HSVhsv(211, 94%, 25%)
CMYKcmyk(93.7%, 47.6%, 0%, 75.3%)
CIE-LABlab(12.43, 2.62, -22.16)
CIE-LCHlch(12.43, 22.31, 276.73°)
OKLaboklab(24.55% -0.0202 -0.0635)
OKLCHoklch(24.55% 0.067 252.4)
XYZxyz(1.4908, 1.4722, 4.9073)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04213F #3F2204
analogous
#043E3F #04213F #04043F
triadic
#04213F #3F0421 #213F04
tetradic
#04213F #3F043E #3F2204 #043F04
square
#04213F #3F043E #3F2204 #043F04
split-complementary
#04213F #3F0404 #3E3F04
monochromatic
#020F1D #020F1D #04213F #083F79 #0B5DB2

Accessibility & contrast

On white

16.22
#04213F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#04213F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04213F
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04213F#FFFFFF#000000##FFFFFF
##04213F1.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122340
Deuteranopia (green-blind)
#071E3E
Tritanopia (blue-blind)
#00282C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #04213f;
/* rgb */ color: rgb(4, 33, 63);
/* oklch */ color: oklch(24.6% 0.067 252.4);
Tailwind
colors: {
  custom: {
    50: '#505b74',
    500: '#04213f',
    950: '#000000',
  },
}
SCSS
$custom: #04213f;
$custom-light: #505b74;
$custom-dark: #000000;
JSON
{
  "hex": "#04213f",
  "rgb": {
    "r": 4,
    "g": 33,
    "b": 63
  },
  "hsl": {
    "h": 210.508,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24553,
    "c": 0.06659,
    "h": 252.4
  },
  "luminance": 0.01472
}

Semantic roles & 50–950 ramp

primary
#04213F
secondary
#80501E
accent
#962AFE
background
#F4F5F7
surface
#E7E9ED
border
#C3C5C8
text
#020408
muted
#78797B

Preview Lab

Preview with #04213F

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

Preview Lab → · Contrast checker → · Palette generator →

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