#212781#212781

#212781 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.148 H 272.3°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#212781
RGBrgb(33, 39, 129)
HSLhsl(236, 59%, 32%)
HSVhsv(236, 74%, 51%)
CMYKcmyk(74.4%, 69.8%, 0%, 49.4%)
CIE-LABlab(21.43, 29.86, -51.27)
CIE-LCHlch(21.43, 59.33, 300.22°)
OKLaboklab(33.49% 0.006 -0.1482)
OKLCHoklch(33.49% 0.148 272.3)
XYZxyz(5.3138, 3.3588, 21.1329)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212781 #817B21
analogous
#215781 #212781 #4B2181
triadic
#212781 #812127 #278121
tetradic
#212781 #812157 #817B21 #21814B
square
#212781 #812157 #817B21 #21814B
split-complementary
#212781 #814B21 #578121
monochromatic
#080A20 #151850 #212781 #2D36B2 #4B54D1

Accessibility & contrast

On white

12.56
#212781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#212781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212781
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212781#FFFFFF#000000##FFFFFF
##2127811.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#002F7F
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #212781;
/* rgb */ color: rgb(33, 39, 129);
/* oklch */ color: oklch(33.5% 0.148 272.3);
Tailwind
colors: {
  custom: {
    50: '#6c61a6',
    500: '#212781',
    950: '#000000',
  },
}
SCSS
$custom: #212781;
$custom-light: #6c61a6;
$custom-dark: #000000;
JSON
{
  "hex": "#212781",
  "rgb": {
    "r": 33,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 236.25,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33489,
    "c": 0.14835,
    "h": 272.3
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#212781
secondary
#B4AD4A
accent
#D945E2
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #212781

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

Preview Lab → · Contrast checker → · Palette generator →

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