#212162#212162

#212162 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.3% C 0.112 H 277.0°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#212162
RGBrgb(33, 33, 98)
HSLhsl(240, 50%, 26%)
HSVhsv(240, 66%, 38%)
CMYKcmyk(66.3%, 66.3%, 0%, 61.6%)
CIE-LABlab(16.95, 22.30, -38.58)
CIE-LCHlch(16.95, 44.57, 300.03°)
OKLaboklab(29.32% 0.0136 -0.1111)
OKLCHoklch(29.32% 0.112 277)
XYZxyz(3.3749, 2.2926, 11.8176)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212162 #626221
analogous
#214162 #212162 #412162
triadic
#212162 #622121 #216221
tetradic
#212162 #622141 #626221 #216241
square
#212162 #622141 #626221 #216241
split-complementary
#212162 #624121 #416221
monochromatic
#080817 #121234 #212162 #303090 #4040BE

Accessibility & contrast

On white

14.40
#212162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#212162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212162
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212162#FFFFFF#000000##FFFFFF
##2121621.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212162;
/* rgb */ color: rgb(33, 33, 98);
/* oklch */ color: oklch(29.3% 0.112 277.0);
Tailwind
colors: {
  custom: {
    50: '#655c8f',
    500: '#212162',
    950: '#000000',
  },
}
SCSS
$custom: #212162;
$custom-light: #655c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#212162",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 240,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2932,
    "c": 0.11192,
    "h": 277
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#212162
secondary
#969649
accent
#D94FD9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06040C
muted
#7A797D

Preview Lab

Preview with #212162

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

Preview Lab → · Contrast checker → · Palette generator →

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