#212297#212297

#212297 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.182 H 271.6°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#212297
RGBrgb(33, 34, 151)
HSLhsl(239, 64%, 36%)
HSVhsv(239, 78%, 59%)
CMYKcmyk(78.1%, 77.5%, 0%, 40.8%)
CIE-LABlab(22.66, 40.77, -62.95)
CIE-LCHlch(22.66, 75.00, 302.93°)
OKLaboklab(35.07% 0.0051 -0.1822)
OKLCHoklch(35.07% 0.182 271.6)
XYZxyz(6.7833, 3.7010, 29.6290)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#212297 #979621
analogous
#215D97 #212297 #5B2197
triadic
#212297 #972122 #229721
tetradic
#212297 #97215D #979621 #21975B
square
#212297 #97215D #979621 #21975B
split-complementary
#212297 #975B21 #5D9721
monochromatic
#0B0B33 #161765 #212297 #2C2DC9 #5859DA

Accessibility & contrast

On white

12.07
#212297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#212297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #212297
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##212297#FFFFFF#000000##FFFFFF
##2122971.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #212297;
/* rgb */ color: rgb(33, 34, 151);
/* oklch */ color: oklch(35.1% 0.182 271.6);
Tailwind
colors: {
  custom: {
    50: '#725fb7',
    500: '#212297',
    950: '#000000',
  },
}
SCSS
$custom: #212297;
$custom-light: #725fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#212297",
  "rgb": {
    "r": 33,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 239.492,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35067,
    "c": 0.18232,
    "h": 271.6
  },
  "luminance": 0.03702
}

Semantic roles & 50–950 ramp

primary
#212297
secondary
#BEBE55
accent
#E641E7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #212297

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

Preview Lab → · Contrast checker → · Palette generator →

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