#021F31#021F31

#021F31 is a very dark, muted cyan. Relative luminance 0.012; OKLCH L 22.8% C 0.049 H 239.9°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#021F31
RGBrgb(2, 31, 49)
HSLhsl(203, 92%, 10%)
HSVhsv(203, 96%, 19%)
CMYKcmyk(95.9%, 36.7%, 0%, 80.8%)
CIE-LABlab(10.66, -2.90, -14.99)
CIE-LCHlch(10.66, 15.27, 259.06°)
OKLaboklab(22.83% -0.0246 -0.0425)
OKLCHoklch(22.83% 0.049 239.9)
XYZxyz(1.0692, 1.2145, 3.0832)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#021F31 #311402
analogous
#02312C #021F31 #020731
triadic
#021F31 #31021F #1F3102
tetradic
#021F31 #2C0231 #311402 #073102
square
#021F31 #2C0231 #311402 #073102
split-complementary
#021F31 #310207 #312C02
monochromatic
#01131D #01131D #021F31 #04446C #0769A7

Accessibility & contrast

On white

16.89
#021F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#021F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #021F31
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##021F31#FFFFFF#000000##FFFFFF
##021F311.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161F32
Deuteranopia (green-blind)
#101B31
Tritanopia (blue-blind)
#002425
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #021f31;
/* rgb */ color: rgb(2, 31, 49);
/* oklch */ color: oklch(22.8% 0.049 239.9);
Tailwind
colors: {
  custom: {
    50: '#4b5a69',
    500: '#021f31',
    950: '#000000',
  },
}
SCSS
$custom: #021f31;
$custom-light: #4b5a69;
$custom-dark: #000000;
JSON
{
  "hex": "#021f31",
  "rgb": {
    "r": 2,
    "g": 31,
    "b": 49
  },
  "hsl": {
    "h": 202.979,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.22832,
    "c": 0.04916,
    "h": 239.9
  },
  "luminance": 0.01215
}

Semantic roles & 50–950 ramp

primary
#021F31
secondary
#753D19
accent
#7B29FF
background
#F4F5F6
surface
#E7E9EB
border
#C3C5C6
text
#010306
muted
#77787A

Preview Lab

Preview with #021F31

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

Preview Lab → · Contrast checker → · Palette generator →

#021F31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva