#2517B3#2517B3

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

Color values

HEX#2517B3
RGBrgb(37, 23, 179)
HSLhsl(245, 77%, 40%)
HSVhsv(245, 87%, 70%)
CMYKcmyk(79.3%, 87.2%, 0%, 29.8%)
CIE-LABlab(24.51, 54.98, -76.86)
CIE-LCHlch(24.51, 94.50, 305.58°)
OKLaboklab(37.39% 0.0062 -0.2223)
OKLCHoklch(37.39% 0.222 271.6)
XYZxyz(9.2033, 4.2597, 42.9763)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2517B3 #A5B317
analogous
#1757B3 #2517B3 #7317B3
triadic
#2517B3 #B32517 #17B325
tetradic
#2517B3 #B31757 #A5B317 #17B373
square
#2517B3 #B31757 #A5B317 #17B373
split-complementary
#2517B3 #B37317 #57B317
monochromatic
#0F0947 #1A107D #2517B3 #3524E3 #675BEA

Accessibility & contrast

On white

11.34
#2517B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2517B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2517B3
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2517B3#FFFFFF#000000##FFFFFF
##2517B31.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2517b3;
/* rgb */ color: rgb(37, 23, 179);
/* oklch */ color: oklch(37.4% 0.222 271.6);
Tailwind
colors: {
  custom: {
    50: '#7b5ccb',
    500: '#2517b3',
    950: '#000000',
  },
}
SCSS
$custom: #2517b3;
$custom-light: #7b5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2517b3",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 245.385,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37391,
    "c": 0.22235,
    "h": 271.6
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#2517B3
secondary
#C3CD58
accent
#F434E3
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #2517B3

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

Preview Lab → · Contrast checker → · Palette generator →

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