#2517A1#2517A1

#2517A1 is a dark, highly saturated blue. Relative luminance 0.036; OKLCH L 35.2% C 0.202 H 273.2°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#2517A1
RGBrgb(37, 23, 161)
HSLhsl(246, 75%, 36%)
HSVhsv(246, 86%, 63%)
CMYKcmyk(77%, 85.7%, 0%, 36.9%)
CIE-LABlab(22.23, 49.69, -69.79)
CIE-LCHlch(22.23, 85.67, 305.45°)
OKLaboklab(35.18% 0.0111 -0.2018)
OKLCHoklch(35.18% 0.202 273.2)
XYZxyz(7.5002, 3.5785, 34.0067)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2517A1 #93A117
analogous
#174EA1 #2517A1 #6A17A1
triadic
#2517A1 #A12517 #17A125
tetradic
#2517A1 #A1174E #93A117 #17A16A
square
#2517A1 #A1174E #93A117 #17A16A
split-complementary
#2517A1 #A16A17 #4EA117
monochromatic
#0C0836 #190F6B #2517A1 #311FD7 #5C4DE6

Accessibility & contrast

On white

12.24
#2517A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2517A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2517A1
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2517A1#FFFFFF#000000##FFFFFF
##2517A11.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003BA5
Deuteranopia (green-blind)
#002E9F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2517a1;
/* rgb */ color: rgb(37, 23, 161);
/* oklch */ color: oklch(35.2% 0.202 273.2);
Tailwind
colors: {
  custom: {
    50: '#775abe',
    500: '#2517a1',
    950: '#000000',
  },
}
SCSS
$custom: #2517a1;
$custom-light: #775abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2517a1",
  "rgb": {
    "r": 37,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 246.087,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35178,
    "c": 0.20212,
    "h": 273.2
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#2517A1
secondary
#BBC74C
accent
#F236DF
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2517A1

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

Preview Lab → · Contrast checker → · Palette generator →

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