#2217B3#2217B3

#2217B3 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.2% C 0.223 H 270.7°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#2217B3
RGBrgb(34, 23, 179)
HSLhsl(244, 77%, 40%)
HSVhsv(244, 87%, 70%)
CMYKcmyk(81%, 87.2%, 0%, 29.8%)
CIE-LABlab(24.34, 54.85, -77.15)
CIE-LCHlch(24.34, 94.66, 305.41°)
OKLaboklab(37.23% 0.0026 -0.2231)
OKLCHoklch(37.23% 0.223 270.7)
XYZxyz(9.1000, 4.2065, 42.9714)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2217B3 #A8B317
analogous
#175AB3 #2217B3 #7017B3
triadic
#2217B3 #B32217 #17B322
tetradic
#2217B3 #B3175A #A8B317 #17B370
square
#2217B3 #B3175A #A8B317 #17B370
split-complementary
#2217B3 #B37017 #5AB317
monochromatic
#0D0947 #18107D #2217B3 #3224E3 #655BEA

Accessibility & contrast

On white

11.40
#2217B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2217B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2217B3
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2217B3#FFFFFF#000000##FFFFFF
##2217B31.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2217b3;
/* rgb */ color: rgb(34, 23, 179);
/* oklch */ color: oklch(37.2% 0.223 270.7);
Tailwind
colors: {
  custom: {
    50: '#7a5bcb',
    500: '#2217b3',
    950: '#000000',
  },
}
SCSS
$custom: #2217b3;
$custom-light: #7a5bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2217b3",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 244.231,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3723,
    "c": 0.22314,
    "h": 270.7
  },
  "luminance": 0.04208
}

Semantic roles & 50–950 ramp

primary
#2217B3
secondary
#C5CD58
accent
#F434E6
background
#F8F5FC
surface
#EFE9F9
border
#CAC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #2217B3

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

Preview Lab → · Contrast checker → · Palette generator →

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