#2517B4#2517B4

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

Color values

HEX#2517B4
RGBrgb(37, 23, 180)
HSLhsl(245, 77%, 40%)
HSVhsv(245, 87%, 71%)
CMYKcmyk(79.4%, 87.2%, 0%, 29.4%)
CIE-LABlab(24.64, 55.27, -77.24)
CIE-LCHlch(24.64, 94.98, 305.58°)
OKLaboklab(37.52% 0.0059 -0.2234)
OKLCHoklch(37.52% 0.223 271.5)
XYZxyz(9.3048, 4.3003, 43.5108)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2517B4 #A6B417
analogous
#1758B4 #2517B4 #7317B4
triadic
#2517B4 #B42517 #17B425
tetradic
#2517B4 #B41758 #A6B417 #17B473
square
#2517B4 #B41758 #A6B417 #17B473
split-complementary
#2517B4 #B47317 #58B417
monochromatic
#0F0947 #1A107E #2517B4 #3625E3 #685BEA

Accessibility & contrast

On white

11.29
#2517B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2517B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2517B4
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2517B4#FFFFFF#000000##FFFFFF
##2517B41.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)
#0042B8
Deuteranopia (green-blind)
#0033B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2517b4;
/* rgb */ color: rgb(37, 23, 180);
/* oklch */ color: oklch(37.5% 0.223 271.5);
Tailwind
colors: {
  custom: {
    50: '#7b5ccc',
    500: '#2517b4',
    950: '#000000',
  },
}
SCSS
$custom: #2517b4;
$custom-light: #7b5ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#2517b4",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 180
  },
  "hsl": {
    "h": 245.35,
    "s": 77.34,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37515,
    "c": 0.22345,
    "h": 271.5
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#2517B4
secondary
#C3CE59
accent
#F434E3
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0414
muted
#7D7982

Preview Lab

Preview with #2517B4

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

Preview Lab → · Contrast checker → · Palette generator →

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