#021836#021836

#021836 is a very dark, moderate cyan. Relative luminance 0.009; OKLCH L 21.2% C 0.066 H 255.9°. Best body text is #FFFFFF at 17.70:1 contrast (WCAG AA passes).

Color values

HEX#021836
RGBrgb(2, 24, 54)
HSLhsl(215, 93%, 11%)
HSVhsv(215, 96%, 21%)
CMYKcmyk(96.3%, 55.6%, 0%, 78.8%)
CIE-LABlab(8.42, 4.95, -22.19)
CIE-LCHlch(8.42, 22.74, 282.58°)
OKLaboklab(21.19% -0.0161 -0.0638)
OKLCHoklch(21.19% 0.066 255.9)
XYZxyz(1.0173, 0.9324, 3.6157)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021836 #362002
analogous
#023236 #021836 #060236
triadic
#021836 #360218 #183602
tetradic
#021836 #360232 #362002 #023606
square
#021836 #360232 #362002 #023606
split-complementary
#021836 #360602 #323602
monochromatic
#010D1E #010D1E #021836 #043271 #064CAC

Accessibility & contrast

On white

17.70
#021836 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#021836 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021836
17.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021836#FFFFFF#000000##FFFFFF
##0218361.0017.701.1917.70
#FFFFFF17.701.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071B37
Deuteranopia (green-blind)
#001635
Tritanopia (blue-blind)
#001F24
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #021836;
/* rgb */ color: rgb(2, 24, 54);
/* oklch */ color: oklch(21.2% 0.066 255.9);
Tailwind
colors: {
  custom: {
    50: '#4c546d',
    500: '#021836',
    950: '#000000',
  },
}
SCSS
$custom: #021836;
$custom-light: #4c546d;
$custom-dark: #000000;
JSON
{
  "hex": "#021836",
  "rgb": {
    "r": 2,
    "g": 24,
    "b": 54
  },
  "hsl": {
    "h": 214.615,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21186,
    "c": 0.06583,
    "h": 255.9
  },
  "luminance": 0.00933
}

Semantic roles & 50–950 ramp

primary
#021836
secondary
#7A511A
accent
#A429FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010207
muted
#77787A

Preview Lab

Preview with #021836

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

Preview Lab → · Contrast checker → · Palette generator →

#021836 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva