#212161#212161

#212161 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.2% C 0.110 H 277.1°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#212161
RGBrgb(33, 33, 97)
HSLhsl(240, 49%, 25%)
HSVhsv(240, 66%, 38%)
CMYKcmyk(66%, 66%, 0%, 62%)
CIE-LABlab(16.86, 21.92, -38.07)
CIE-LCHlch(16.86, 43.93, 299.93°)
OKLaboklab(29.23% 0.0137 -0.1096)
OKLCHoklch(29.23% 0.11 277.1)
XYZxyz(3.3280, 2.2739, 11.5705)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212161 #616121
analogous
#214161 #212161 #412161
triadic
#212161 #612121 #216121
tetradic
#212161 #612141 #616121 #216141
square
#212161 #612141 #616121 #216141
split-complementary
#212161 #614121 #416121
monochromatic
#080817 #111133 #212161 #31318F #4040BC

Accessibility & contrast

On white

14.43
#212161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#212161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212161
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212161#FFFFFF#000000##FFFFFF
##2121611.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C63
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#00313D
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #212161;
/* rgb */ color: rgb(33, 33, 97);
/* oklch */ color: oklch(29.2% 0.110 277.1);
Tailwind
colors: {
  custom: {
    50: '#655c8e',
    500: '#212161',
    950: '#000000',
  },
}
SCSS
$custom: #212161;
$custom-light: #655c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#212161",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 240,
    "s": 49.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29226,
    "c": 0.11043,
    "h": 277.1
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212161

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

Preview Lab → · Contrast checker → · Palette generator →

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