#2217A1#2217A1

#2217A1 is a dark, highly saturated blue. Relative luminance 0.035; OKLCH L 35.0% C 0.203 H 272.0°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#2217A1
RGBrgb(34, 23, 161)
HSLhsl(245, 75%, 36%)
HSVhsv(245, 86%, 63%)
CMYKcmyk(78.9%, 85.7%, 0%, 36.9%)
CIE-LABlab(22.04, 49.53, -70.11)
CIE-LCHlch(22.04, 85.84, 305.24°)
OKLaboklab(35% 0.0072 -0.2028)
OKLCHoklch(35% 0.203 272)
XYZxyz(7.3969, 3.5253, 34.0019)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2217A1 #96A117
analogous
#1751A1 #2217A1 #6717A1
triadic
#2217A1 #A12217 #17A122
tetradic
#2217A1 #A11751 #96A117 #17A167
square
#2217A1 #A11751 #96A117 #17A167
split-complementary
#2217A1 #A16717 #51A117
monochromatic
#0B0836 #170F6B #2217A1 #2D1FD7 #594DE6

Accessibility & contrast

On white

12.32
#2217A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2217A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2217A1
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2217A1#FFFFFF#000000##FFFFFF
##2217A11.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002E9F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2217a1;
/* rgb */ color: rgb(34, 23, 161);
/* oklch */ color: oklch(35.0% 0.203 272.0);
Tailwind
colors: {
  custom: {
    50: '#765abe',
    500: '#2217a1',
    950: '#000000',
  },
}
SCSS
$custom: #2217a1;
$custom-light: #765abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2217a1",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 244.783,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.34997,
    "c": 0.20292,
    "h": 272
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#2217A1
secondary
#BEC74C
accent
#F236E3
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2217A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2217A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva