#212381#212381

#212381 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.153 H 273.2°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#212381
RGBrgb(33, 35, 129)
HSLhsl(239, 59%, 32%)
HSVhsv(239, 74%, 51%)
CMYKcmyk(74.4%, 72.9%, 0%, 49.4%)
CIE-LABlab(20.48, 32.45, -52.83)
CIE-LCHlch(20.48, 62.00, 301.56°)
OKLaboklab(32.8% 0.0085 -0.1528)
OKLCHoklch(32.8% 0.153 273.2)
XYZxyz(5.1894, 3.1099, 21.0914)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212381 #817F21
analogous
#215381 #212381 #4F2181
triadic
#212381 #812123 #238121
tetradic
#212381 #812153 #817F21 #21814F
square
#212381 #812153 #817F21 #21814F
split-complementary
#212381 #814F21 #538121
monochromatic
#080920 #151650 #212381 #2D30B2 #4B4ED1

Accessibility & contrast

On white

12.95
#212381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#212381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212381
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212381#FFFFFF#000000##FFFFFF
##2123811.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #212381;
/* rgb */ color: rgb(33, 35, 129);
/* oklch */ color: oklch(32.8% 0.153 273.2);
Tailwind
colors: {
  custom: {
    50: '#6c5fa7',
    500: '#212381',
    950: '#000000',
  },
}
SCSS
$custom: #212381;
$custom-light: #6c5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#212381",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 238.75,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32804,
    "c": 0.15301,
    "h": 273.2
  },
  "luminance": 0.0311
}

Semantic roles & 50–950 ramp

primary
#212381
secondary
#B4B14A
accent
#DF45E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #212381

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

Preview Lab → · Contrast checker → · Palette generator →

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