#24157D#24157D

#24157D is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.161 H 277.5°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#24157D
RGBrgb(36, 21, 125)
HSLhsl(249, 71%, 29%)
HSVhsv(249, 83%, 49%)
CMYKcmyk(71.2%, 83.2%, 0%, 51%)
CIE-LABlab(17.42, 39.42, -55.33)
CIE-LCHlch(17.42, 67.93, 305.47°)
OKLaboklab(30.57% 0.021 -0.1599)
OKLCHoklch(30.57% 0.161 277.5)
XYZxyz(4.6962, 2.3916, 19.6122)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24157D #6E7D15
analogous
#153A7D #24157D #58157D
triadic
#24157D #7D2415 #157D24
tetradic
#24157D #7D153A #6E7D15 #157D58
square
#24157D #7D153A #6E7D15 #157D58
split-complementary
#24157D #7D5815 #3A7D15
monochromatic
#08041A #150C49 #24157D #331EB1 #4930DC

Accessibility & contrast

On white

14.20
#24157D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#24157D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24157D
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24157D#FFFFFF#000000##FFFFFF
##24157D1.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F80
Deuteranopia (green-blind)
#00267B
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #24157d;
/* rgb */ color: rgb(36, 21, 125);
/* oklch */ color: oklch(30.6% 0.161 277.5);
Tailwind
colors: {
  custom: {
    50: '#6e56a4',
    500: '#24157d',
    950: '#000000',
  },
}
SCSS
$custom: #24157d;
$custom-light: #6e56a4;
$custom-dark: #000000;
JSON
{
  "hex": "#24157d",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 125
  },
  "hsl": {
    "h": 248.654,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3057,
    "c": 0.16124,
    "h": 277.5
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#24157D
secondary
#A1B23C
accent
#EE3AD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24157D

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

Preview Lab → · Contrast checker → · Palette generator →

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