#24158C#24158C

#24158C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.179 H 275.3°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#24158C
RGBrgb(36, 21, 140)
HSLhsl(248, 74%, 32%)
HSVhsv(248, 85%, 55%)
CMYKcmyk(74.3%, 85%, 0%, 45.1%)
CIE-LABlab(19.24, 44.12, -61.78)
CIE-LCHlch(19.24, 75.92, 305.53°)
OKLaboklab(32.36% 0.0165 -0.1786)
OKLCHoklch(32.36% 0.179 275.3)
XYZxyz(5.7278, 2.8043, 25.0453)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24158C #7D8C15
analogous
#15428C #24158C #60158C
triadic
#24158C #8C2415 #158C24
tetradic
#24158C #8C1542 #7D8C15 #158C60
square
#24158C #8C1542 #7D8C15 #158C60
split-complementary
#24158C #8C6015 #428C15
monochromatic
#090522 #160D57 #24158C #321DC1 #4F3AE1

Accessibility & contrast

On white

13.45
#24158C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#24158C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24158C
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24158C#FFFFFF#000000##FFFFFF
##24158C1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #24158c;
/* rgb */ color: rgb(36, 21, 140);
/* oklch */ color: oklch(32.4% 0.179 275.3);
Tailwind
colors: {
  custom: {
    50: '#7157af',
    500: '#24158c',
    950: '#000000',
  },
}
SCSS
$custom: #24158c;
$custom-light: #7157af;
$custom-dark: #000000;
JSON
{
  "hex": "#24158c",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 140
  },
  "hsl": {
    "h": 247.563,
    "s": 73.913,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32358,
    "c": 0.17935,
    "h": 275.3
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#24158C
secondary
#AFC03D
accent
#F137D9
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #24158C

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

Preview Lab → · Contrast checker → · Palette generator →

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