#212195#212195

#212195 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.181 H 271.9°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#212195
RGBrgb(33, 33, 149)
HSLhsl(240, 64%, 36%)
HSVhsv(240, 78%, 58%)
CMYKcmyk(77.9%, 77.9%, 0%, 41.6%)
CIE-LABlab(22.23, 40.66, -62.42)
CIE-LCHlch(22.23, 74.49, 303.08°)
OKLaboklab(34.7% 0.0059 -0.1807)
OKLCHoklch(34.7% 0.181 271.9)
XYZxyz(6.5940, 3.5803, 28.7715)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212195 #959521
analogous
#215B95 #212195 #5B2195
triadic
#212195 #952121 #219521
tetradic
#212195 #95215B #959521 #21955B
square
#212195 #95215B #959521 #21955B
split-complementary
#212195 #955B21 #5B9521
monochromatic
#0B0B31 #161663 #212195 #2C2CC7 #5757DA

Accessibility & contrast

On white

12.24
#212195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#212195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212195
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212195#FFFFFF#000000##FFFFFF
##2121951.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#002F93
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #212195;
/* rgb */ color: rgb(33, 33, 149);
/* oklch */ color: oklch(34.7% 0.181 271.9);
Tailwind
colors: {
  custom: {
    50: '#725eb5',
    500: '#212195',
    950: '#000000',
  },
}
SCSS
$custom: #212195;
$custom-light: #725eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#212195",
  "rgb": {
    "r": 33,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 240,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.347,
    "c": 0.1808,
    "h": 271.9
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#212195
secondary
#BEBE54
accent
#E741E7
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #212195

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

Preview Lab → · Contrast checker → · Palette generator →

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