#212497#212497

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

Color values

HEX#212497
RGBrgb(33, 36, 151)
HSLhsl(238, 64%, 36%)
HSVhsv(238, 78%, 59%)
CMYKcmyk(78.1%, 76.2%, 0%, 40.8%)
CIE-LABlab(23.06, 39.62, -62.28)
CIE-LCHlch(23.06, 73.82, 302.46°)
OKLaboklab(35.35% 0.0043 -0.1803)
OKLCHoklch(35.35% 0.18 271.4)
XYZxyz(6.8421, 3.8187, 29.6486)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212497 #979421
analogous
#215F97 #212497 #592197
triadic
#212497 #972124 #249721
tetradic
#212497 #97215F #979421 #219759
square
#212497 #97215F #979421 #219759
split-complementary
#212497 #975921 #5F9721
monochromatic
#0B0C33 #161865 #212497 #2C30C9 #585BDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##212497#FFFFFF#000000##FFFFFF
##2124971.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)
#003D9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212497;
/* rgb */ color: rgb(33, 36, 151);
/* oklch */ color: oklch(35.4% 0.180 271.4);
Tailwind
colors: {
  custom: {
    50: '#7260b7',
    500: '#212497',
    950: '#000000',
  },
}
SCSS
$custom: #212497;
$custom-light: #7260b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212497",
  "rgb": {
    "r": 33,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 238.475,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35354,
    "c": 0.18037,
    "h": 271.4
  },
  "luminance": 0.03819
}

Semantic roles & 50–950 ramp

primary
#212497
secondary
#BEBC55
accent
#E341E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212497

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

Preview Lab → · Contrast checker → · Palette generator →

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