#212284#212284

#212284 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.158 H 273.1°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#212284
RGBrgb(33, 34, 132)
HSLhsl(239, 60%, 32%)
HSVhsv(239, 75%, 52%)
CMYKcmyk(75%, 74.2%, 0%, 48.2%)
CIE-LABlab(20.57, 34.15, -54.57)
CIE-LCHlch(20.57, 64.38, 302.04°)
OKLaboklab(32.96% 0.0086 -0.1579)
OKLCHoklch(32.96% 0.158 273.1)
XYZxyz(5.3627, 3.1328, 22.1474)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212284 #848321
analogous
#215484 #212284 #522184
triadic
#212284 #842122 #228421
tetradic
#212284 #842154 #848321 #218452
square
#212284 #842154 #848321 #218452
split-complementary
#212284 #845221 #548421
monochromatic
#090922 #151553 #212284 #2D2FB5 #4D4ED2

Accessibility & contrast

On white

12.91
#212284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #212284
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212284#FFFFFF#000000##FFFFFF
##2122841.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #212284;
/* rgb */ color: rgb(33, 34, 132);
/* oklch */ color: oklch(33.0% 0.158 273.1);
Tailwind
colors: {
  custom: {
    50: '#6d5ea9',
    500: '#212284',
    950: '#000000',
  },
}
SCSS
$custom: #212284;
$custom-light: #6d5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#212284",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 239.394,
    "s": 60,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32963,
    "c": 0.1581,
    "h": 273.1
  },
  "luminance": 0.03133
}

Semantic roles & 50–950 ramp

primary
#212284
secondary
#B6B44B
accent
#E245E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #212284

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

Preview Lab → · Contrast checker → · Palette generator →

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