#212181#212181

#212181 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.155 H 273.6°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#212181
RGBrgb(33, 33, 129)
HSLhsl(240, 59%, 32%)
HSVhsv(240, 74%, 51%)
CMYKcmyk(74.4%, 74.4%, 0%, 49.4%)
CIE-LABlab(20.03, 33.70, -53.57)
CIE-LCHlch(20.03, 63.29, 302.17°)
OKLaboklab(32.48% 0.0096 -0.1549)
OKLCHoklch(32.48% 0.155 273.6)
XYZxyz(5.1322, 2.9955, 21.0723)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212181 #818121
analogous
#215181 #212181 #512181
triadic
#212181 #812121 #218121
tetradic
#212181 #812151 #818121 #218151
square
#212181 #812151 #818121 #218151
split-complementary
#212181 #815121 #518121
monochromatic
#080820 #151550 #212181 #2D2DB2 #4B4BD1

Accessibility & contrast

On white

13.13
#212181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#212181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212181
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212181#FFFFFF#000000##FFFFFF
##2121811.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #212181;
/* rgb */ color: rgb(33, 33, 129);
/* oklch */ color: oklch(32.5% 0.155 273.6);
Tailwind
colors: {
  custom: {
    50: '#6c5da7',
    500: '#212181',
    950: '#000000',
  },
}
SCSS
$custom: #212181;
$custom-light: #6c5da7;
$custom-dark: #000000;
JSON
{
  "hex": "#212181",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 129
  },
  "hsl": {
    "h": 240,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3248,
    "c": 0.15525,
    "h": 273.6
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

primary
#212181
secondary
#B4B44A
accent
#E245E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212181

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

Preview Lab → · Contrast checker → · Palette generator →

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