#2717B4#2717B4

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

Color values

HEX#2717B4
RGBrgb(39, 23, 180)
HSLhsl(246, 77%, 40%)
HSVhsv(246, 87%, 71%)
CMYKcmyk(78.3%, 87.2%, 0%, 29.4%)
CIE-LABlab(24.76, 55.36, -77.04)
CIE-LCHlch(24.76, 94.87, 305.70°)
OKLaboklab(37.63% 0.0084 -0.2228)
OKLCHoklch(37.63% 0.223 272.2)
XYZxyz(9.3786, 4.3384, 43.5143)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2717B4 #A4B417
analogous
#1755B4 #2717B4 #7617B4
triadic
#2717B4 #B42717 #17B427
tetradic
#2717B4 #B41755 #A4B417 #17B476
square
#2717B4 #B41755 #A4B417 #17B476
split-complementary
#2717B4 #B47617 #55B417
monochromatic
#0F0947 #1B107E #2717B4 #3825E3 #6A5BEA

Accessibility & contrast

On white

11.24
#2717B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2717B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2717B4
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2717B4#FFFFFF#000000##FFFFFF
##2717B41.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2717b4;
/* rgb */ color: rgb(39, 23, 180);
/* oklch */ color: oklch(37.6% 0.223 272.2);
Tailwind
colors: {
  custom: {
    50: '#7c5ccc',
    500: '#2717b4',
    950: '#000000',
  },
}
SCSS
$custom: #2717b4;
$custom-light: #7c5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2717b4",
  "rgb": {
    "r": 39,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 246.115,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37629,
    "c": 0.22292,
    "h": 272.2
  },
  "luminance": 0.04339
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2717B4

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

Preview Lab → · Contrast checker → · Palette generator →

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