#24157F#24157F

#24157F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.8% C 0.164 H 277.2°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#24157F
RGBrgb(36, 21, 127)
HSLhsl(248, 72%, 29%)
HSVhsv(248, 83%, 50%)
CMYKcmyk(71.7%, 83.5%, 0%, 50.2%)
CIE-LABlab(17.66, 40.05, -56.20)
CIE-LCHlch(17.66, 69.02, 305.47°)
OKLaboklab(30.81% 0.0204 -0.1624)
OKLCHoklch(30.81% 0.164 277.2)
XYZxyz(4.8252, 2.4433, 20.2919)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24157F #707F15
analogous
#153B7F #24157F #59157F
triadic
#24157F #7F2415 #157F24
tetradic
#24157F #7F153B #707F15 #157F59
square
#24157F #7F153B #707F15 #157F59
split-complementary
#24157F #7F5915 #3B7F15
monochromatic
#07041A #150C4A #24157F #331EB4 #4A31DD

Accessibility & contrast

On white

14.11
#24157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#24157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24157F
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24157F#FFFFFF#000000##FFFFFF
##24157F1.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #24157f;
/* rgb */ color: rgb(36, 21, 127);
/* oklch */ color: oklch(30.8% 0.164 277.2);
Tailwind
colors: {
  custom: {
    50: '#6e56a5',
    500: '#24157f',
    950: '#000000',
  },
}
SCSS
$custom: #24157f;
$custom-light: #6e56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24157f",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 248.491,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30806,
    "c": 0.16369,
    "h": 277.2
  },
  "luminance": 0.02444
}

Semantic roles & 50–950 ramp

primary
#24157F
secondary
#A3B43C
accent
#EE39D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24157F

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

Preview Lab → · Contrast checker → · Palette generator →

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