#212581#212581

#212581 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.151 H 272.8°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#212581
RGBrgb(33, 37, 129)
HSLhsl(238, 59%, 32%)
HSVhsv(238, 74%, 51%)
CMYKcmyk(74.4%, 71.3%, 0%, 49.4%)
CIE-LABlab(20.95, 31.17, -52.06)
CIE-LCHlch(20.95, 60.68, 300.91°)
OKLaboklab(33.14% 0.0072 -0.1505)
OKLCHoklch(33.14% 0.151 272.8)
XYZxyz(5.2499, 3.2309, 21.1116)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212581 #817D21
analogous
#215581 #212581 #4D2181
triadic
#212581 #812125 #258121
tetradic
#212581 #812155 #817D21 #21814D
square
#212581 #812155 #817D21 #21814D
split-complementary
#212581 #814D21 #558121
monochromatic
#080920 #151750 #212581 #2D33B2 #4B51D1

Accessibility & contrast

On white

12.76
#212581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#212581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212581
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212581#FFFFFF#000000##FFFFFF
##2125811.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#003E50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212581;
/* rgb */ color: rgb(33, 37, 129);
/* oklch */ color: oklch(33.1% 0.151 272.8);
Tailwind
colors: {
  custom: {
    50: '#6c60a7',
    500: '#212581',
    950: '#000000',
  },
}
SCSS
$custom: #212581;
$custom-light: #6c60a7;
$custom-dark: #000000;
JSON
{
  "hex": "#212581",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 129
  },
  "hsl": {
    "h": 237.5,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33141,
    "c": 0.15071,
    "h": 272.8
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#212581
secondary
#B4AF4A
accent
#DC45E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #212581

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

Preview Lab → · Contrast checker → · Palette generator →

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