#24157E#24157E

#24157E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.162 H 277.3°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#24157E
RGBrgb(36, 21, 126)
HSLhsl(249, 71%, 29%)
HSVhsv(249, 83%, 49%)
CMYKcmyk(71.4%, 83.3%, 0%, 50.6%)
CIE-LABlab(17.54, 39.73, -55.77)
CIE-LCHlch(17.54, 68.47, 305.47°)
OKLaboklab(30.69% 0.0207 -0.1611)
OKLCHoklch(30.69% 0.162 277.3)
XYZxyz(4.7604, 2.4173, 19.9503)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24157E #6F7E15
analogous
#153B7E #24157E #59157E
triadic
#24157E #7E2415 #157E24
tetradic
#24157E #7E153B #6F7E15 #157E59
square
#24157E #7E153B #6F7E15 #157E59
split-complementary
#24157E #7E5915 #3B7E15
monochromatic
#07041A #150C4A #24157E #331EB2 #4931DD

Accessibility & contrast

On white

14.15
#24157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24157E
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24157E#FFFFFF#000000##FFFFFF
##24157E1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #24157e;
/* rgb */ color: rgb(36, 21, 126);
/* oklch */ color: oklch(30.7% 0.162 277.3);
Tailwind
colors: {
  custom: {
    50: '#6e56a5',
    500: '#24157e',
    950: '#000000',
  },
}
SCSS
$custom: #24157e;
$custom-light: #6e56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24157e",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 248.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30688,
    "c": 0.16247,
    "h": 277.3
  },
  "luminance": 0.02418
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24157E

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

Preview Lab → · Contrast checker → · Palette generator →

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