#24157B#24157B

#24157B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.159 H 277.8°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#24157B
RGBrgb(36, 21, 123)
HSLhsl(249, 71%, 28%)
HSVhsv(249, 83%, 48%)
CMYKcmyk(70.7%, 82.9%, 0%, 51.8%)
CIE-LABlab(17.18, 38.78, -54.44)
CIE-LCHlch(17.18, 66.84, 305.46°)
OKLaboklab(30.34% 0.0216 -0.1573)
OKLCHoklch(30.34% 0.159 277.8)
XYZxyz(4.5697, 2.3411, 18.9461)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24157B #6C7B15
analogous
#15397B #24157B #57157B
triadic
#24157B #7B2415 #157B24
tetradic
#24157B #7B1539 #6C7B15 #157B57
square
#24157B #7B1539 #6C7B15 #157B57
split-complementary
#24157B #7B5715 #397B15
monochromatic
#08041A #150C47 #24157B #331EAF #482FDB

Accessibility & contrast

On white

14.30
#24157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#24157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24157B
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24157B#FFFFFF#000000##FFFFFF
##24157B1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24157b;
/* rgb */ color: rgb(36, 21, 123);
/* oklch */ color: oklch(30.3% 0.159 277.8);
Tailwind
colors: {
  custom: {
    50: '#6d56a2',
    500: '#24157b',
    950: '#000000',
  },
}
SCSS
$custom: #24157b;
$custom-light: #6d56a2;
$custom-dark: #000000;
JSON
{
  "hex": "#24157b",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 248.824,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30336,
    "c": 0.15877,
    "h": 277.8
  },
  "luminance": 0.02341
}

Semantic roles & 50–950 ramp

primary
#24157B
secondary
#9FB03B
accent
#EE3AD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24157B

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

Preview Lab → · Contrast checker → · Palette generator →

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