#24178B#24178B

#24178B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.177 H 275.2°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#24178B
RGBrgb(36, 23, 139)
HSLhsl(247, 72%, 32%)
HSVhsv(247, 83%, 55%)
CMYKcmyk(74.1%, 83.5%, 0%, 45.5%)
CIE-LABlab(19.44, 42.87, -60.83)
CIE-LCHlch(19.44, 74.42, 305.18°)
OKLaboklab(32.46% 0.016 -0.1759)
OKLCHoklch(32.46% 0.177 275.2)
XYZxyz(5.6926, 2.8514, 24.6715)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24178B #7E8B17
analogous
#17448B #24178B #5E178B
triadic
#24178B #8B2417 #178B24
tetradic
#24178B #8B1744 #7E8B17 #178B5E
square
#24178B #8B1744 #7E8B17 #178B5E
split-complementary
#24178B #8B5E17 #448B17
monochromatic
#090622 #160E56 #24178B #3220C0 #503DDF

Accessibility & contrast

On white

13.37
#24178B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#24178B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24178B
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24178B#FFFFFF#000000##FFFFFF
##24178B1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #24178b;
/* rgb */ color: rgb(36, 23, 139);
/* oklch */ color: oklch(32.5% 0.177 275.2);
Tailwind
colors: {
  custom: {
    50: '#7158ae',
    500: '#24178b',
    950: '#000000',
  },
}
SCSS
$custom: #24178b;
$custom-light: #7158ae;
$custom-dark: #000000;
JSON
{
  "hex": "#24178b",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 139
  },
  "hsl": {
    "h": 246.724,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32458,
    "c": 0.17659,
    "h": 275.2
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#24178B
secondary
#B0BF3F
accent
#EE39DA
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #24178B

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

Preview Lab → · Contrast checker → · Palette generator →

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