#24175E#24175E

#24175E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.119 H 283.7°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#24175E
RGBrgb(36, 23, 94)
HSLhsl(251, 61%, 23%)
HSVhsv(251, 76%, 37%)
CMYKcmyk(61.7%, 75.5%, 0%, 63.1%)
CIE-LABlab(14.38, 28.02, -40.13)
CIE-LCHlch(14.38, 48.94, 304.92°)
OKLaboklab(27.41% 0.0281 -0.1155)
OKLCHoklch(27.41% 0.119 283.7)
XYZxyz(3.0537, 1.7958, 10.7732)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24175E #515E17
analogous
#172D5E #24175E #47175E
triadic
#24175E #5E2417 #175E24
tetradic
#24175E #5E172D #515E17 #175E47
square
#24175E #5E172D #515E17 #175E47
split-complementary
#24175E #5E4717 #2D5E17
monochromatic
#090619 #110B2D #24175E #37238F #4A2FC0

Accessibility & contrast

On white

15.45
#24175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#24175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24175E
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24175E#FFFFFF#000000##FFFFFF
##24175E1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#052A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #24175e;
/* rgb */ color: rgb(36, 23, 94);
/* oklch */ color: oklch(27.4% 0.119 283.7);
Tailwind
colors: {
  custom: {
    50: '#66558c',
    500: '#24175e',
    950: '#000000',
  },
}
SCSS
$custom: #24175e;
$custom-light: #66558c;
$custom-dark: #000000;
JSON
{
  "hex": "#24175e",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 250.986,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27405,
    "c": 0.11891,
    "h": 283.7
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#24175E
secondary
#85953C
accent
#E444C7
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #24175E

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

Preview Lab → · Contrast checker → · Palette generator →

#24175E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva