#212481#212481

#212481 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.152 H 273.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#212481
RGBrgb(33, 36, 129)
HSLhsl(238, 59%, 32%)
HSVhsv(238, 74%, 51%)
CMYKcmyk(74.4%, 72.1%, 0%, 49.4%)
CIE-LABlab(20.71, 31.81, -52.45)
CIE-LCHlch(20.71, 61.34, 301.24°)
OKLaboklab(32.97% 0.0079 -0.1517)
OKLCHoklch(32.97% 0.152 273)
XYZxyz(5.2192, 3.1695, 21.1013)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212481 #817E21
analogous
#215481 #212481 #4E2181
triadic
#212481 #812124 #248121
tetradic
#212481 #812154 #817E21 #21814E
square
#212481 #812154 #817E21 #21814E
split-complementary
#212481 #814E21 #548121
monochromatic
#080920 #151650 #212481 #2D32B2 #4B50D1

Accessibility & contrast

On white

12.85
#212481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#212481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212481
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212481#FFFFFF#000000##FFFFFF
##2124811.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212481;
/* rgb */ color: rgb(33, 36, 129);
/* oklch */ color: oklch(33.0% 0.152 273.0);
Tailwind
colors: {
  custom: {
    50: '#6c5fa7',
    500: '#212481',
    950: '#000000',
  },
}
SCSS
$custom: #212481;
$custom-light: #6c5fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#212481",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 129
  },
  "hsl": {
    "h": 238.125,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32971,
    "c": 0.15187,
    "h": 273
  },
  "luminance": 0.0317
}

Semantic roles & 50–950 ramp

primary
#212481
secondary
#B4B04A
accent
#DE45E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #212481

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

Preview Lab → · Contrast checker → · Palette generator →

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