#2417A1#2417A1

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

Color values

HEX#2417A1
RGBrgb(36, 23, 161)
HSLhsl(246, 75%, 36%)
HSVhsv(246, 86%, 63%)
CMYKcmyk(77.6%, 85.7%, 0%, 36.9%)
CIE-LABlab(22.16, 49.64, -69.90)
CIE-LCHlch(22.16, 85.73, 305.38°)
OKLaboklab(35.12% 0.0098 -0.2021)
OKLCHoklch(35.12% 0.202 272.8)
XYZxyz(7.4648, 3.5603, 34.0051)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2417A1 #94A117
analogous
#174FA1 #2417A1 #6917A1
triadic
#2417A1 #A12417 #17A124
tetradic
#2417A1 #A1174F #94A117 #17A169
square
#2417A1 #A1174F #94A117 #17A169
split-complementary
#2417A1 #A16917 #4FA117
monochromatic
#0C0836 #180F6B #2417A1 #301FD7 #5B4DE6

Accessibility & contrast

On white

12.26
#2417A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2417A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2417A1
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2417A1#FFFFFF#000000##FFFFFF
##2417A11.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.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: #2417a1;
/* rgb */ color: rgb(36, 23, 161);
/* oklch */ color: oklch(35.1% 0.202 272.8);
Tailwind
colors: {
  custom: {
    50: '#765abe',
    500: '#2417a1',
    950: '#000000',
  },
}
SCSS
$custom: #2417a1;
$custom-light: #765abe;
$custom-dark: #000000;
JSON
{
  "hex": "#2417a1",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 161
  },
  "hsl": {
    "h": 245.652,
    "s": 75,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35116,
    "c": 0.20238,
    "h": 272.8
  },
  "luminance": 0.03561
}

Semantic roles & 50–950 ramp

primary
#2417A1
secondary
#BCC74C
accent
#F236E0
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2417A1

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

Preview Lab → · Contrast checker → · Palette generator →

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