#21272F#21272F

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

Color values

HEX#21272F
RGBrgb(33, 39, 47)
HSLhsl(214, 18%, 16%)
HSVhsv(214, 30%, 18%)
CMYKcmyk(29.8%, 17%, 0%, 81.6%)
CIE-LABlab(15.38, -0.38, -6.12)
CIE-LCHlch(15.38, 6.13, 266.46°)
OKLaboklab(27.03% -0.0043 -0.0167)
OKLCHoklch(27.03% 0.017 255.7)
XYZxyz(1.8657, 1.9795, 2.9726)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21272F #2F2921
analogous
#212E2F #21272F #22212F
triadic
#21272F #2F2127 #272F21
tetradic
#21272F #2F212E #2F2921 #212F22
square
#21272F #2F212E #2F2921 #212F22
split-complementary
#21272F #2F2221 #2E2F21
monochromatic
#0D0F12 #0D0F12 #21272F #3A4553 #536377

Accessibility & contrast

On white

15.04
#21272F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#21272F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21272F
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21272F#FFFFFF#000000##FFFFFF
##21272F1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24272F
Deuteranopia (green-blind)
#23262F
Tritanopia (blue-blind)
#1D292A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #21272f;
/* rgb */ color: rgb(33, 39, 47);
/* oklch */ color: oklch(27.0% 0.017 255.7);
Tailwind
colors: {
  custom: {
    50: '#5c6167',
    500: '#21272f',
    950: '#000000',
  },
}
SCSS
$custom: #21272f;
$custom-light: #5c6167;
$custom-dark: #000000;
JSON
{
  "hex": "#21272f",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 47
  },
  "hsl": {
    "h": 214.286,
    "s": 17.5,
    "l": 15.686
  },
  "oklch": {
    "l": 0.27031,
    "c": 0.01725,
    "h": 255.7
  },
  "luminance": 0.0198
}

Semantic roles & 50–950 ramp

primary
#21272F
secondary
#60574B
accent
#996EBA
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#040506
muted
#79797A

Preview Lab

Preview with #21272F

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

Preview Lab → · Contrast checker → · Palette generator →

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