#212493#212493

#212493 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.9% C 0.175 H 271.6°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#212493
RGBrgb(33, 36, 147)
HSLhsl(238, 63%, 35%)
HSVhsv(238, 78%, 58%)
CMYKcmyk(77.6%, 75.5%, 0%, 42.4%)
CIE-LABlab(22.62, 38.23, -60.54)
CIE-LCHlch(22.62, 71.60, 302.27°)
OKLaboklab(34.91% 0.005 -0.1753)
OKLCHoklch(34.91% 0.175 271.6)
XYZxyz(6.5228, 3.6910, 27.9668)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212493 #939021
analogous
#215D93 #212493 #572193
triadic
#212493 #932124 #249321
tetradic
#212493 #93215D #939021 #219357
square
#212493 #93215D #939021 #219357
split-complementary
#212493 #935721 #5D9321
monochromatic
#0B0C2F #161861 #212493 #2C30C5 #5559D9

Accessibility & contrast

On white

12.08
#212493 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212493 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212493
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212493#FFFFFF#000000##FFFFFF
##2124931.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C96
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #212493;
/* rgb */ color: rgb(33, 36, 147);
/* oklch */ color: oklch(34.9% 0.175 271.6);
Tailwind
colors: {
  custom: {
    50: '#7160b4',
    500: '#212493',
    950: '#000000',
  },
}
SCSS
$custom: #212493;
$custom-light: #7160b4;
$custom-dark: #000000;
JSON
{
  "hex": "#212493",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 147
  },
  "hsl": {
    "h": 238.421,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34911,
    "c": 0.17534,
    "h": 271.6
  },
  "luminance": 0.03692
}

Semantic roles & 50–950 ramp

primary
#212493
secondary
#BDBA53
accent
#E241E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212493

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

Preview Lab → · Contrast checker → · Palette generator →

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