#212893#212893

#212893 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.171 H 271.0°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#212893
RGBrgb(33, 40, 147)
HSLhsl(236, 63%, 35%)
HSVhsv(236, 78%, 58%)
CMYKcmyk(77.6%, 72.8%, 0%, 42.4%)
CIE-LABlab(23.49, 35.80, -59.10)
CIE-LCHlch(23.49, 69.10, 301.21°)
OKLaboklab(35.53% 0.0031 -0.1711)
OKLCHoklch(35.53% 0.171 271)
XYZxyz(6.6507, 3.9468, 28.0094)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212893 #938C21
analogous
#216193 #212893 #532193
triadic
#212893 #932128 #289321
tetradic
#212893 #932161 #938C21 #219353
square
#212893 #932161 #938C21 #219353
split-complementary
#212893 #935321 #619321
monochromatic
#0B0D2F #161A61 #212893 #2C36C5 #555ED9

Accessibility & contrast

On white

11.73
#212893 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#212893 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212893
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212893#FFFFFF#000000##FFFFFF
##2128931.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003291
Tritanopia (blue-blind)
#00465A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #212893;
/* rgb */ color: rgb(33, 40, 147);
/* oklch */ color: oklch(35.5% 0.171 271.0);
Tailwind
colors: {
  custom: {
    50: '#7063b4',
    500: '#212893',
    950: '#000000',
  },
}
SCSS
$custom: #212893;
$custom-light: #7063b4;
$custom-dark: #000000;
JSON
{
  "hex": "#212893",
  "rgb": {
    "r": 33,
    "g": 40,
    "b": 147
  },
  "hsl": {
    "h": 236.316,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35534,
    "c": 0.17113,
    "h": 271
  },
  "luminance": 0.03948
}

Semantic roles & 50–950 ramp

primary
#212893
secondary
#BDB653
accent
#DC41E6
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212893

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

Preview Lab → · Contrast checker → · Palette generator →

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