#212595#212595

#212595 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.177 H 271.4°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#212595
RGBrgb(33, 37, 149)
HSLhsl(238, 64%, 36%)
HSVhsv(238, 78%, 58%)
CMYKcmyk(77.9%, 75.2%, 0%, 41.6%)
CIE-LABlab(23.05, 38.34, -61.07)
CIE-LCHlch(23.05, 72.10, 302.12°)
OKLaboklab(35.28% 0.0042 -0.1768)
OKLCHoklch(35.28% 0.177 271.4)
XYZxyz(6.7117, 3.8157, 28.8107)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212595 #959121
analogous
#215F95 #212595 #572195
triadic
#212595 #952125 #259521
tetradic
#212595 #95215F #959121 #219557
square
#212595 #95215F #959121 #219557
split-complementary
#212595 #955721 #5F9521
monochromatic
#0B0C31 #161963 #212595 #2C31C7 #575BDA

Accessibility & contrast

On white

11.91
#212595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#212595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212595
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212595#FFFFFF#000000##FFFFFF
##2125951.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212595;
/* rgb */ color: rgb(33, 37, 149);
/* oklch */ color: oklch(35.3% 0.177 271.4);
Tailwind
colors: {
  custom: {
    50: '#7161b5',
    500: '#212595',
    950: '#000000',
  },
}
SCSS
$custom: #212595;
$custom-light: #7161b5;
$custom-dark: #000000;
JSON
{
  "hex": "#212595",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 237.931,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35281,
    "c": 0.17685,
    "h": 271.4
  },
  "luminance": 0.03816
}

Semantic roles & 50–950 ramp

primary
#212595
secondary
#BEBA54
accent
#E141E7
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212595

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

Preview Lab → · Contrast checker → · Palette generator →

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