#24158A#24158A

#24158A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.1% C 0.177 H 275.5°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#24158A
RGBrgb(36, 21, 138)
HSLhsl(248, 74%, 31%)
HSVhsv(248, 85%, 54%)
CMYKcmyk(73.9%, 84.8%, 0%, 45.9%)
CIE-LABlab(19.00, 43.50, -60.94)
CIE-LCHlch(19.00, 74.87, 305.52°)
OKLaboklab(32.12% 0.0171 -0.1761)
OKLCHoklch(32.12% 0.177 275.5)
XYZxyz(5.5817, 2.7458, 24.2757)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24158A #7B8A15
analogous
#15408A #24158A #5E158A
triadic
#24158A #8A2415 #158A24
tetradic
#24158A #8A1540 #7B8A15 #158A5E
square
#24158A #8A1540 #7B8A15 #158A5E
split-complementary
#24158A #8A5E15 #408A15
monochromatic
#080520 #160D55 #24158A #321DBF #4E39E1

Accessibility & contrast

On white

13.56
#24158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#24158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24158A
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24158A#FFFFFF#000000##FFFFFF
##24158A1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #24158a;
/* rgb */ color: rgb(36, 21, 138);
/* oklch */ color: oklch(32.1% 0.177 275.5);
Tailwind
colors: {
  custom: {
    50: '#7157ad',
    500: '#24158a',
    950: '#000000',
  },
}
SCSS
$custom: #24158a;
$custom-light: #7157ad;
$custom-dark: #000000;
JSON
{
  "hex": "#24158a",
  "rgb": {
    "r": 36,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 247.692,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32117,
    "c": 0.17697,
    "h": 275.5
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#24158A
secondary
#ADBE3D
accent
#F038D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #24158A

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

Preview Lab → · Contrast checker → · Palette generator →

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