#021827#021827

#021827 is a very dark, muted cyan. Relative luminance 0.008; OKLCH L 20.0% C 0.042 H 240.4°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#021827
RGBrgb(2, 24, 39)
HSLhsl(204, 90%, 8%)
HSVhsv(204, 95%, 15%)
CMYKcmyk(94.9%, 38.5%, 0%, 84.7%)
CIE-LABlab(7.34, -2.24, -12.86)
CIE-LCHlch(7.34, 13.05, 260.13°)
OKLaboklab(19.98% -0.0208 -0.0366)
OKLCHoklch(19.98% 0.042 240.4)
XYZxyz(0.7177, 0.8126, 2.0381)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021827 #271102
analogous
#022723 #021827 #020627
triadic
#021827 #270218 #182702
tetradic
#021827 #230227 #271102 #062702
square
#021827 #230227 #271102 #062702
split-complementary
#021827 #270206 #272302
monochromatic
#01121D #01121D #021827 #053C61 #08609B

Accessibility & contrast

On white

18.06
#021827 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#021827 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021827
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021827#FFFFFF#000000##FFFFFF
##0218271.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111828
Deuteranopia (green-blind)
#0B1527
Tritanopia (blue-blind)
#001C1D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #021827;
/* rgb */ color: rgb(2, 24, 39);
/* oklch */ color: oklch(20.0% 0.042 240.4);
Tailwind
colors: {
  custom: {
    50: '#485461',
    500: '#021827',
    950: '#000000',
  },
}
SCSS
$custom: #021827;
$custom-light: #485461;
$custom-dark: #000000;
JSON
{
  "hex": "#021827",
  "rgb": {
    "r": 2,
    "g": 24,
    "b": 39
  },
  "hsl": {
    "h": 204.324,
    "s": 90.244,
    "l": 8.039
  },
  "oklch": {
    "l": 0.19976,
    "c": 0.04205,
    "h": 240.4
  },
  "luminance": 0.00813
}

Semantic roles & 50–950 ramp

primary
#021827
secondary
#6C3A18
accent
#8029FF
background
#F4F4F5
surface
#E6E7E9
border
#C2C3C5
text
#000205
muted
#777879

Preview Lab

Preview with #021827

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

Preview Lab → · Contrast checker → · Palette generator →

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