#24158F#24158F

#24158F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.183 H 274.9°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#24158F
RGBrgb(36, 21, 143)
HSLhsl(247, 74%, 32%)
HSVhsv(247, 85%, 56%)
CMYKcmyk(74.8%, 85.3%, 0%, 43.9%)
CIE-LABlab(19.61, 45.04, -63.03)
CIE-LCHlch(19.61, 77.47, 305.55°)
OKLaboklab(32.72% 0.0156 -0.1822)
OKLCHoklch(32.72% 0.183 274.9)
XYZxyz(5.9520, 2.8940, 26.2262)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24158F #808F15
analogous
#15438F #24158F #61158F
triadic
#24158F #8F2415 #158F24
tetradic
#24158F #8F1543 #808F15 #158F61
square
#24158F #8F1543 #808F15 #158F61
split-complementary
#24158F #8F6115 #438F15
monochromatic
#090524 #170D5A #24158F #311DC4 #503CE2

Accessibility & contrast

On white

13.30
#24158F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#24158F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24158F
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24158F#FFFFFF#000000##FFFFFF
##24158F1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #24158f;
/* rgb */ color: rgb(36, 21, 143);
/* oklch */ color: oklch(32.7% 0.183 274.9);
Tailwind
colors: {
  custom: {
    50: '#7257b1',
    500: '#24158f',
    950: '#000000',
  },
}
SCSS
$custom: #24158f;
$custom-light: #7257b1;
$custom-dark: #000000;
JSON
{
  "hex": "#24158f",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 143
  },
  "hsl": {
    "h": 247.377,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32721,
    "c": 0.18289,
    "h": 274.9
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#24158F
secondary
#B2C23E
accent
#F137DA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #24158F

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

Preview Lab → · Contrast checker → · Palette generator →

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