#2417B3#2417B3

#2417B3 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.3% C 0.223 H 271.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#2417B3
RGBrgb(36, 23, 179)
HSLhsl(245, 77%, 40%)
HSVhsv(245, 87%, 70%)
CMYKcmyk(79.9%, 87.2%, 0%, 29.8%)
CIE-LABlab(24.45, 54.93, -76.96)
CIE-LCHlch(24.45, 94.55, 305.52°)
OKLaboklab(37.34% 0.0049 -0.2226)
OKLCHoklch(37.34% 0.223 271.3)
XYZxyz(9.1679, 4.2415, 42.9746)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2417B3 #A6B317
analogous
#1758B3 #2417B3 #7217B3
triadic
#2417B3 #B32417 #17B324
tetradic
#2417B3 #B31758 #A6B317 #17B372
square
#2417B3 #B31758 #A6B317 #17B372
split-complementary
#2417B3 #B37217 #58B317
monochromatic
#0E0947 #19107D #2417B3 #3424E3 #665BEA

Accessibility & contrast

On white

11.36
#2417B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2417B3
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2417B3#FFFFFF#000000##FFFFFF
##2417B31.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.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: #2417b3;
/* rgb */ color: rgb(36, 23, 179);
/* oklch */ color: oklch(37.3% 0.223 271.3);
Tailwind
colors: {
  custom: {
    50: '#7b5ccb',
    500: '#2417b3',
    950: '#000000',
  },
}
SCSS
$custom: #2417b3;
$custom-light: #7b5ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#2417b3",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 179
  },
  "hsl": {
    "h": 245,
    "s": 77.228,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37336,
    "c": 0.22261,
    "h": 271.3
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

primary
#2417B3
secondary
#C4CD58
accent
#F434E4
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0B0414
muted
#7C7982

Preview Lab

Preview with #2417B3

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

Preview Lab → · Contrast checker → · Palette generator →

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