#212151#212151

#212151 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.8% C 0.086 H 279.3°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#212151
RGBrgb(33, 33, 81)
HSLhsl(240, 42%, 22%)
HSVhsv(240, 59%, 32%)
CMYKcmyk(59.3%, 59.3%, 0%, 68.2%)
CIE-LABlab(15.51, 15.89, -29.54)
CIE-LCHlch(15.51, 33.54, 298.28°)
OKLaboklab(27.8% 0.0138 -0.0845)
OKLCHoklch(27.8% 0.086 279.3)
XYZxyz(2.6558, 2.0050, 8.0300)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212151 #515121
analogous
#213951 #212151 #392151
triadic
#212151 #512121 #215121
tetradic
#212151 #512139 #515121 #215139
square
#212151 #512139 #515121 #215139
split-complementary
#212151 #513921 #395121
monochromatic
#090916 #0F0F26 #212151 #33337C #4444A8

Accessibility & contrast

On white

14.99
#212151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#212151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212151
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212151#FFFFFF#000000##FFFFFF
##2121511.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052953
Deuteranopia (green-blind)
#002550
Tritanopia (blue-blind)
#0B2C35
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #212151;
/* rgb */ color: rgb(33, 33, 81);
/* oklch */ color: oklch(27.8% 0.086 279.3);
Tailwind
colors: {
  custom: {
    50: '#615c82',
    500: '#212151',
    950: '#000000',
  },
}
SCSS
$custom: #212151;
$custom-light: #615c82;
$custom-dark: #000000;
JSON
{
  "hex": "#212151",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 81
  },
  "hsl": {
    "h": 240,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.278,
    "c": 0.08561,
    "h": 279.3
  },
  "luminance": 0.02005
}

Semantic roles & 50–950 ramp

primary
#212151
secondary
#858549
accent
#D256D2
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040A
muted
#79797C

Preview Lab

Preview with #212151

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

Preview Lab → · Contrast checker → · Palette generator →

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