#212153#212153

#212153 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.089 H 279.0°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#212153
RGBrgb(33, 33, 83)
HSLhsl(240, 43%, 23%)
HSVhsv(240, 60%, 33%)
CMYKcmyk(60.2%, 60.2%, 0%, 67.5%)
CIE-LABlab(15.67, 16.64, -30.64)
CIE-LCHlch(15.67, 34.87, 298.51°)
OKLaboklab(27.97% 0.0139 -0.0877)
OKLCHoklch(27.97% 0.089 279)
XYZxyz(2.7319, 2.0354, 8.4309)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212153 #535321
analogous
#213A53 #212153 #3A2153
triadic
#212153 #532121 #215321
tetradic
#212153 #53213A #535321 #21533A
square
#212153 #53213A #535321 #21533A
split-complementary
#212153 #533A21 #3A5321
monochromatic
#090916 #101027 #212153 #32327F #4444AB

Accessibility & contrast

On white

14.92
#212153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#212153 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212153
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212153#FFFFFF#000000##FFFFFF
##2121531.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022955
Deuteranopia (green-blind)
#002552
Tritanopia (blue-blind)
#082D36
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #212153;
/* rgb */ color: rgb(33, 33, 83);
/* oklch */ color: oklch(28.0% 0.089 279.0);
Tailwind
colors: {
  custom: {
    50: '#625c84',
    500: '#212153',
    950: '#000000',
  },
}
SCSS
$custom: #212153;
$custom-light: #625c84;
$custom-dark: #000000;
JSON
{
  "hex": "#212153",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 83
  },
  "hsl": {
    "h": 240,
    "s": 43.103,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27969,
    "c": 0.08882,
    "h": 279
  },
  "luminance": 0.02036
}

Semantic roles & 50–950 ramp

primary
#212153
secondary
#878749
accent
#D355D3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#05040B
muted
#7A797C

Preview Lab

Preview with #212153

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

Preview Lab → · Contrast checker → · Palette generator →

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