#212397#212397

#212397 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.181 H 271.5°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#212397
RGBrgb(33, 35, 151)
HSLhsl(239, 64%, 36%)
HSVhsv(239, 78%, 59%)
CMYKcmyk(78.1%, 76.8%, 0%, 40.8%)
CIE-LABlab(22.86, 40.20, -62.62)
CIE-LCHlch(22.86, 74.41, 302.70°)
OKLaboklab(35.21% 0.0047 -0.1813)
OKLCHoklch(35.21% 0.181 271.5)
XYZxyz(6.8123, 3.7590, 29.6387)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212397 #979521
analogous
#215E97 #212397 #5A2197
triadic
#212397 #972123 #239721
tetradic
#212397 #97215E #979521 #21975A
square
#212397 #97215E #979521 #21975A
split-complementary
#212397 #975A21 #5E9721
monochromatic
#0B0C33 #161765 #212397 #2C2FC9 #585ADA

Accessibility & contrast

On white

11.99
#212397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#212397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212397
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212397#FFFFFF#000000##FFFFFF
##2123971.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212397;
/* rgb */ color: rgb(33, 35, 151);
/* oklch */ color: oklch(35.2% 0.181 271.5);
Tailwind
colors: {
  custom: {
    50: '#7260b7',
    500: '#212397',
    950: '#000000',
  },
}
SCSS
$custom: #212397;
$custom-light: #7260b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212397",
  "rgb": {
    "r": 33,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 238.983,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35209,
    "c": 0.18136,
    "h": 271.5
  },
  "luminance": 0.0376
}

Semantic roles & 50–950 ramp

primary
#212397
secondary
#BEBD55
accent
#E441E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212397

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

Preview Lab → · Contrast checker → · Palette generator →

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