#212281#212281

#212281 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.154 H 273.4°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#212281
RGBrgb(33, 34, 129)
HSLhsl(239, 59%, 32%)
HSVhsv(239, 74%, 51%)
CMYKcmyk(74.4%, 73.6%, 0%, 49.4%)
CIE-LABlab(20.25, 33.08, -53.20)
CIE-LCHlch(20.25, 62.65, 301.87°)
OKLaboklab(32.64% 0.0091 -0.1539)
OKLCHoklch(32.64% 0.154 273.4)
XYZxyz(5.1603, 3.0519, 21.0817)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212281 #818021
analogous
#215281 #212281 #502181
triadic
#212281 #812122 #228121
tetradic
#212281 #812152 #818021 #218150
square
#212281 #812152 #818021 #218150
split-complementary
#212281 #815021 #528121
monochromatic
#080820 #151550 #212281 #2D2FB2 #4B4DD1

Accessibility & contrast

On white

13.04
#212281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#212281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212281
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212281#FFFFFF#000000##FFFFFF
##2122811.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212281;
/* rgb */ color: rgb(33, 34, 129);
/* oklch */ color: oklch(32.6% 0.154 273.4);
Tailwind
colors: {
  custom: {
    50: '#6c5ea7',
    500: '#212281',
    950: '#000000',
  },
}
SCSS
$custom: #212281;
$custom-light: #6c5ea7;
$custom-dark: #000000;
JSON
{
  "hex": "#212281",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 239.375,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32641,
    "c": 0.15415,
    "h": 273.4
  },
  "luminance": 0.03052
}

Semantic roles & 50–950 ramp

primary
#212281
secondary
#B4B24A
accent
#E145E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #212281

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

Preview Lab → · Contrast checker → · Palette generator →

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