#212597#212597

#212597 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.179 H 271.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#212597
RGBrgb(33, 37, 151)
HSLhsl(238, 64%, 36%)
HSVhsv(238, 78%, 59%)
CMYKcmyk(78.1%, 75.5%, 0%, 40.8%)
CIE-LABlab(23.27, 39.03, -61.94)
CIE-LCHlch(23.27, 73.21, 302.22°)
OKLaboklab(35.5% 0.0039 -0.1793)
OKLCHoklch(35.5% 0.179 271.2)
XYZxyz(6.8728, 3.8801, 29.6589)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212597 #979321
analogous
#216097 #212597 #582197
triadic
#212597 #972125 #259721
tetradic
#212597 #972160 #979321 #219758
square
#212597 #972160 #979321 #219758
split-complementary
#212597 #975821 #609721
monochromatic
#0B0C33 #161965 #212597 #2C31C9 #585CDA

Accessibility & contrast

On white

11.82
#212597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#212597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212597
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212597#FFFFFF#000000##FFFFFF
##2125971.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003295
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #212597;
/* rgb */ color: rgb(33, 37, 151);
/* oklch */ color: oklch(35.5% 0.179 271.2);
Tailwind
colors: {
  custom: {
    50: '#7261b7',
    500: '#212597',
    950: '#000000',
  },
}
SCSS
$custom: #212597;
$custom-light: #7261b7;
$custom-dark: #000000;
JSON
{
  "hex": "#212597",
  "rgb": {
    "r": 33,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 237.966,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35502,
    "c": 0.17937,
    "h": 271.2
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #212597

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

Preview Lab → · Contrast checker → · Palette generator →

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