#2217B4#2217B4

#2217B4 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.4% C 0.224 H 270.6°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#2217B4
RGBrgb(34, 23, 180)
HSLhsl(244, 77%, 40%)
HSVhsv(244, 87%, 71%)
CMYKcmyk(81.1%, 87.2%, 0%, 29.4%)
CIE-LABlab(24.47, 55.14, -77.53)
CIE-LCHlch(24.47, 95.14, 305.42°)
OKLaboklab(37.35% 0.0023 -0.2242)
OKLCHoklch(37.35% 0.224 270.6)
XYZxyz(9.2015, 4.2471, 43.5060)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2217B4 #A9B417
analogous
#175AB4 #2217B4 #7117B4
triadic
#2217B4 #B42217 #17B422
tetradic
#2217B4 #B4175A #A9B417 #17B471
square
#2217B4 #B4175A #A9B417 #17B471
split-complementary
#2217B4 #B47117 #5AB417
monochromatic
#0D0947 #18107E #2217B4 #3225E3 #655BEA

Accessibility & contrast

On white

11.35
#2217B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2217B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2217B4
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2217B4#FFFFFF#000000##FFFFFF
##2217B41.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B8
Deuteranopia (green-blind)
#0032B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2217b4;
/* rgb */ color: rgb(34, 23, 180);
/* oklch */ color: oklch(37.4% 0.224 270.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ccc',
    500: '#2217b4',
    950: '#000000',
  },
}
SCSS
$custom: #2217b4;
$custom-light: #7b5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2217b4",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 244.204,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37355,
    "c": 0.22425,
    "h": 270.6
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#2217B4
secondary
#C5CE59
accent
#F434E6
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #2217B4

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

Preview Lab → · Contrast checker → · Palette generator →

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