#24158D#24158D

#24158D is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.5% C 0.181 H 275.1°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#24158D
RGBrgb(36, 21, 141)
HSLhsl(248, 74%, 32%)
HSVhsv(248, 85%, 55%)
CMYKcmyk(74.5%, 85.1%, 0%, 44.7%)
CIE-LABlab(19.37, 44.43, -62.20)
CIE-LCHlch(19.37, 76.44, 305.54°)
OKLaboklab(32.48% 0.0162 -0.1798)
OKLCHoklch(32.48% 0.181 275.1)
XYZxyz(5.8019, 2.8339, 25.4354)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24158D #7E8D15
analogous
#15428D #24158D #60158D
triadic
#24158D #8D2415 #158D24
tetradic
#24158D #8D1542 #7E8D15 #158D60
square
#24158D #8D1542 #7E8D15 #158D60
split-complementary
#24158D #8D6015 #428D15
monochromatic
#090522 #160D58 #24158D #321DC2 #503BE2

Accessibility & contrast

On white

13.40
#24158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#24158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24158D
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24158D#FFFFFF#000000##FFFFFF
##24158D1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003490
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #24158d;
/* rgb */ color: rgb(36, 21, 141);
/* oklch */ color: oklch(32.5% 0.181 275.1);
Tailwind
colors: {
  custom: {
    50: '#7257b0',
    500: '#24158d',
    950: '#000000',
  },
}
SCSS
$custom: #24158d;
$custom-light: #7257b0;
$custom-dark: #000000;
JSON
{
  "hex": "#24158d",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 247.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32479,
    "c": 0.18052,
    "h": 275.1
  },
  "luminance": 0.02834
}

Semantic roles & 50–950 ramp

primary
#24158D
secondary
#B0C13D
accent
#F137DA
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #24158D

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

Preview Lab → · Contrast checker → · Palette generator →

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