#212681#212681

#212681 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.150 H 272.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#212681
RGBrgb(33, 38, 129)
HSLhsl(237, 59%, 32%)
HSVhsv(237, 74%, 51%)
CMYKcmyk(74.4%, 70.5%, 0%, 49.4%)
CIE-LABlab(21.18, 30.52, -51.67)
CIE-LCHlch(21.18, 60.01, 300.57°)
OKLaboklab(33.31% 0.0066 -0.1494)
OKLCHoklch(33.31% 0.15 272.5)
XYZxyz(5.2814, 3.2940, 21.1221)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212681 #817C21
analogous
#215681 #212681 #4C2181
triadic
#212681 #812126 #268121
tetradic
#212681 #812156 #817C21 #21814C
square
#212681 #812156 #817C21 #21814C
split-complementary
#212681 #814C21 #568121
monochromatic
#080920 #151850 #212681 #2D34B2 #4B52D1

Accessibility & contrast

On white

12.66
#212681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#212681 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212681
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212681#FFFFFF#000000##FFFFFF
##2126811.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212681;
/* rgb */ color: rgb(33, 38, 129);
/* oklch */ color: oklch(33.3% 0.150 272.5);
Tailwind
colors: {
  custom: {
    50: '#6c61a7',
    500: '#212681',
    950: '#000000',
  },
}
SCSS
$custom: #212681;
$custom-light: #6c61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#212681",
  "rgb": {
    "r": 33,
    "g": 38,
    "b": 129
  },
  "hsl": {
    "h": 236.875,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33313,
    "c": 0.14954,
    "h": 272.5
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#212681
secondary
#B4AE4A
accent
#DA45E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #212681

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

Preview Lab → · Contrast checker → · Palette generator →

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