#24178A#24178A

#24178A is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.175 H 275.3°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#24178A
RGBrgb(36, 23, 138)
HSLhsl(247, 71%, 32%)
HSVhsv(247, 83%, 54%)
CMYKcmyk(73.9%, 83.3%, 0%, 45.9%)
CIE-LABlab(19.32, 42.56, -60.40)
CIE-LCHlch(19.32, 73.89, 305.17°)
OKLaboklab(32.34% 0.0163 -0.1746)
OKLCHoklch(32.34% 0.175 275.3)
XYZxyz(5.6199, 2.8223, 24.2884)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24178A #7D8A17
analogous
#17438A #24178A #5E178A
triadic
#24178A #8A2417 #178A24
tetradic
#24178A #8A1743 #7D8A17 #178A5E
square
#24178A #8A1743 #7D8A17 #178A5E
split-complementary
#24178A #8A5E17 #438A17
monochromatic
#090621 #160E56 #24178A #3220BE #4F3DDF

Accessibility & contrast

On white

13.42
#24178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#24178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24178A
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24178A#FFFFFF#000000##FFFFFF
##24178A1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348D
Deuteranopia (green-blind)
#002A88
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #24178a;
/* rgb */ color: rgb(36, 23, 138);
/* oklch */ color: oklch(32.3% 0.175 275.3);
Tailwind
colors: {
  custom: {
    50: '#7158ad',
    500: '#24178a',
    950: '#000000',
  },
}
SCSS
$custom: #24178a;
$custom-light: #7158ad;
$custom-dark: #000000;
JSON
{
  "hex": "#24178a",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 246.783,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32339,
    "c": 0.17539,
    "h": 275.3
  },
  "luminance": 0.02823
}

Semantic roles & 50–950 ramp

primary
#24178A
secondary
#AFBE3F
accent
#EE3ADA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #24178A

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

Preview Lab → · Contrast checker → · Palette generator →

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