#21242E#21242E

#21242E is a dark, near-neutral blue. Relative luminance 0.018; OKLCH L 26.2% C 0.019 H 271.9°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#21242E
RGBrgb(33, 36, 46)
HSLhsl(226, 16%, 15%)
HSVhsv(226, 28%, 18%)
CMYKcmyk(28.3%, 21.7%, 0%, 82%)
CIE-LABlab(14.30, 1.45, -7.04)
CIE-LCHlch(14.30, 7.19, 281.64°)
OKLaboklab(26.17% 0.0007 -0.0193)
OKLCHoklch(26.17% 0.019 271.9)
XYZxyz(1.7511, 1.7823, 2.8360)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#21242E #2E2B21
analogous
#212A2E #21242E #24212E
triadic
#21242E #2E2124 #242E21
tetradic
#21242E #2E212A #2E2B21 #212E24
square
#21242E #2E212A #2E2B21 #212E24
split-complementary
#21242E #2E2421 #2A2E21
monochromatic
#0D0E12 #0D0E12 #21242E #3B4052 #545C75

Accessibility & contrast

On white

15.48
#21242E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#21242E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #21242E
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##21242E#FFFFFF#000000##FFFFFF
##21242E1.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21252E
Deuteranopia (green-blind)
#20242E
Tritanopia (blue-blind)
#1E2627
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #21242e;
/* rgb */ color: rgb(33, 36, 46);
/* oklch */ color: oklch(26.2% 0.019 271.9);
Tailwind
colors: {
  custom: {
    50: '#5c5e66',
    500: '#21242e',
    950: '#000000',
  },
}
SCSS
$custom: #21242e;
$custom-light: #5c5e66;
$custom-dark: #000000;
JSON
{
  "hex": "#21242e",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 46
  },
  "hsl": {
    "h": 226.154,
    "s": 16.456,
    "l": 15.49
  },
  "oklch": {
    "l": 0.26171,
    "c": 0.01927,
    "h": 271.9
  },
  "luminance": 0.01782
}

Semantic roles & 50–950 ramp

primary
#21242E
secondary
#5F5B4C
accent
#A86FB9
background
#F5F5F6
surface
#E9E9EB
border
#C5C5C6
text
#040406
muted
#79797A

Preview Lab

Preview with #21242E

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

Preview Lab → · Contrast checker → · Palette generator →

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