#24178C#24178C

#24178C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.178 H 275.1°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#24178C
RGBrgb(36, 23, 140)
HSLhsl(247, 72%, 32%)
HSVhsv(247, 84%, 55%)
CMYKcmyk(74.3%, 83.6%, 0%, 45.1%)
CIE-LABlab(19.56, 43.19, -61.25)
CIE-LCHlch(19.56, 74.95, 305.19°)
OKLaboklab(32.58% 0.0158 -0.1771)
OKLCHoklch(32.58% 0.178 275.1)
XYZxyz(5.7660, 2.8807, 25.0580)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24178C #7F8C17
analogous
#17448C #24178C #5F178C
triadic
#24178C #8C2417 #178C24
tetradic
#24178C #8C1744 #7F8C17 #178C5F
square
#24178C #8C1744 #7F8C17 #178C5F
split-complementary
#24178C #8C5F17 #448C17
monochromatic
#090623 #160E57 #24178C #3220C1 #503EDF

Accessibility & contrast

On white

13.32
#24178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#24178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24178C
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24178C#FFFFFF#000000##FFFFFF
##24178C1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#002A8A
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #24178c;
/* rgb */ color: rgb(36, 23, 140);
/* oklch */ color: oklch(32.6% 0.178 275.1);
Tailwind
colors: {
  custom: {
    50: '#7158af',
    500: '#24178c',
    950: '#000000',
  },
}
SCSS
$custom: #24178c;
$custom-light: #7158af;
$custom-dark: #000000;
JSON
{
  "hex": "#24178c",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 246.667,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32577,
    "c": 0.1778,
    "h": 275.1
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#24178C
secondary
#B1BF3F
accent
#EF39DA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #24178C

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

Preview Lab → · Contrast checker → · Palette generator →

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