#21272E#21272E

#21272E is a dark, near-neutral cyan. Relative luminance 0.020; OKLCH L 27.0% C 0.016 H 252.4°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#21272E
RGBrgb(33, 39, 46)
HSLhsl(212, 16%, 15%)
HSVhsv(212, 28%, 18%)
CMYKcmyk(28.3%, 15.2%, 0%, 82%)
CIE-LABlab(15.34, -0.68, -5.47)
CIE-LCHlch(15.34, 5.52, 262.90°)
OKLaboklab(26.98% -0.0047 -0.0149)
OKLCHoklch(26.98% 0.016 252.4)
XYZxyz(1.8457, 1.9716, 2.8675)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21272E #2E2821
analogous
#212D2E #21272E #21212E
triadic
#21272E #2E2127 #272E21
tetradic
#21272E #2E212D #2E2821 #212E21
square
#21272E #2E212D #2E2821 #212E21
split-complementary
#21272E #2E2121 #2D2E21
monochromatic
#0D0F12 #0D0F12 #21272E #3B4552 #546375

Accessibility & contrast

On white

15.06
#21272E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#21272E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21272E
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21272E#FFFFFF#000000##FFFFFF
##21272E1.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25272E
Deuteranopia (green-blind)
#23262E
Tritanopia (blue-blind)
#1E2929
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21272e;
/* rgb */ color: rgb(33, 39, 46);
/* oklch */ color: oklch(27.0% 0.016 252.4);
Tailwind
colors: {
  custom: {
    50: '#5c6166',
    500: '#21272e',
    950: '#000000',
  },
}
SCSS
$custom: #21272e;
$custom-light: #5c6166;
$custom-dark: #000000;
JSON
{
  "hex": "#21272e",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 46
  },
  "hsl": {
    "h": 212.308,
    "s": 16.456,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26984,
    "c": 0.01565,
    "h": 252.4
  },
  "luminance": 0.01972
}

Semantic roles & 50–950 ramp

primary
#21272E
secondary
#5F564C
accent
#976FB9
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#040506
muted
#79797A

Preview Lab

Preview with #21272E

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

Preview Lab → · Contrast checker → · Palette generator →

#21272E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva