#021831#021831

#021831 is a very dark, muted cyan. Relative luminance 0.009; OKLCH L 20.8% C 0.058 H 252.5°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#021831
RGBrgb(2, 24, 49)
HSLhsl(212, 92%, 10%)
HSVhsv(212, 96%, 19%)
CMYKcmyk(95.9%, 51%, 0%, 80.8%)
CIE-LABlab(8.02, 2.47, -19.19)
CIE-LCHlch(8.02, 19.35, 277.35°)
OKLaboklab(20.75% -0.0173 -0.055)
OKLCHoklch(20.75% 0.058 252.5)
XYZxyz(0.9058, 0.8878, 3.0288)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021831 #311B02
analogous
#022F31 #021831 #040231
triadic
#021831 #310218 #183102
tetradic
#021831 #31022F #311B02 #023104
square
#021831 #31022F #311B02 #023104
split-complementary
#021831 #310402 #2F3102
monochromatic
#010E1D #010E1D #021831 #04356C #0752A7

Accessibility & contrast

On white

17.83
#021831 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#021831 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021831
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021831#FFFFFF#000000##FFFFFF
##0218311.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B1A32
Deuteranopia (green-blind)
#041631
Tritanopia (blue-blind)
#001E22
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #021831;
/* rgb */ color: rgb(2, 24, 49);
/* oklch */ color: oklch(20.8% 0.058 252.5);
Tailwind
colors: {
  custom: {
    50: '#4a5469',
    500: '#021831',
    950: '#000000',
  },
}
SCSS
$custom: #021831;
$custom-light: #4a5469;
$custom-dark: #000000;
JSON
{
  "hex": "#021831",
  "rgb": {
    "r": 2,
    "g": 24,
    "b": 49
  },
  "hsl": {
    "h": 211.915,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.20752,
    "c": 0.05766,
    "h": 252.5
  },
  "luminance": 0.00888
}

Semantic roles & 50–950 ramp

primary
#021831
secondary
#754A19
accent
#9B29FF
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #021831

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

Preview Lab → · Contrast checker → · Palette generator →

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