#24157A#24157A

#24157A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.158 H 278.0°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#24157A
RGBrgb(36, 21, 122)
HSLhsl(249, 71%, 28%)
HSVhsv(249, 83%, 48%)
CMYKcmyk(70.5%, 82.8%, 0%, 52.2%)
CIE-LABlab(17.07, 38.46, -54.00)
CIE-LCHlch(17.07, 66.29, 305.46°)
OKLaboklab(30.22% 0.022 -0.156)
OKLCHoklch(30.22% 0.158 278)
XYZxyz(4.5074, 2.3161, 18.6181)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24157A #6B7A15
analogous
#15387A #24157A #56157A
triadic
#24157A #7A2415 #157A24
tetradic
#24157A #7A1538 #6B7A15 #157A56
square
#24157A #7A1538 #6B7A15 #157A56
split-complementary
#24157A #7A5615 #387A15
monochromatic
#08041A #150C46 #24157A #331EAE #482EDB

Accessibility & contrast

On white

14.35
#24157A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#24157A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24157A
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24157A#FFFFFF#000000##FFFFFF
##24157A1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #24157a;
/* rgb */ color: rgb(36, 21, 122);
/* oklch */ color: oklch(30.2% 0.158 278.0);
Tailwind
colors: {
  custom: {
    50: '#6d56a2',
    500: '#24157a',
    950: '#000000',
  },
}
SCSS
$custom: #24157a;
$custom-light: #6d56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#24157a",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 248.911,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30219,
    "c": 0.15753,
    "h": 278
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#24157A
secondary
#9EAF3B
accent
#ED3AD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24157A

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

Preview Lab → · Contrast checker → · Palette generator →

#24157A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva