#2717B3#2717B3

#2717B3 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.5% C 0.222 H 272.2°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#2717B3
RGBrgb(39, 23, 179)
HSLhsl(246, 77%, 40%)
HSVhsv(246, 87%, 70%)
CMYKcmyk(78.2%, 87.2%, 0%, 29.8%)
CIE-LABlab(24.63, 55.07, -76.66)
CIE-LCHlch(24.63, 94.39, 305.69°)
OKLaboklab(37.51% 0.0087 -0.2216)
OKLCHoklch(37.51% 0.222 272.2)
XYZxyz(9.2771, 4.2978, 42.9797)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2717B3 #A3B317
analogous
#1755B3 #2717B3 #7517B3
triadic
#2717B3 #B32717 #17B327
tetradic
#2717B3 #B31755 #A3B317 #17B375
square
#2717B3 #B31755 #A3B317 #17B375
split-complementary
#2717B3 #B37517 #55B317
monochromatic
#0F0947 #1B107D #2717B3 #3824E3 #695BEA

Accessibility & contrast

On white

11.29
#2717B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2717B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2717B3
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2717B3#FFFFFF#000000##FFFFFF
##2717B31.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B7
Deuteranopia (green-blind)
#0033B0
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2717b3;
/* rgb */ color: rgb(39, 23, 179);
/* oklch */ color: oklch(37.5% 0.222 272.2);
Tailwind
colors: {
  custom: {
    50: '#7c5ccb',
    500: '#2717b3',
    950: '#000000',
  },
}
SCSS
$custom: #2717b3;
$custom-light: #7c5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2717b3",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 246.154,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37506,
    "c": 0.22181,
    "h": 272.2
  },
  "luminance": 0.04299
}

Semantic roles & 50–950 ramp

primary
#2717B3
secondary
#C1CD58
accent
#F434E0
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2717B3

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

Preview Lab → · Contrast checker → · Palette generator →

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