#24178F#24178F

#24178F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.181 H 274.7°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#24178F
RGBrgb(36, 23, 143)
HSLhsl(247, 72%, 33%)
HSVhsv(247, 84%, 56%)
CMYKcmyk(74.8%, 83.9%, 0%, 43.9%)
CIE-LABlab(19.93, 44.13, -62.52)
CIE-LCHlch(19.93, 76.52, 305.22°)
OKLaboklab(32.93% 0.0149 -0.1808)
OKLCHoklch(32.93% 0.181 274.7)
XYZxyz(5.9902, 2.9704, 26.2389)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24178F #828F17
analogous
#17468F #24178F #60178F
triadic
#24178F #8F2417 #178F24
tetradic
#24178F #8F1746 #828F17 #178F60
square
#24178F #8F1746 #828F17 #178F60
split-complementary
#24178F #8F6017 #468F17
monochromatic
#090626 #170F5A #24178F #311FC4 #5140E0

Accessibility & contrast

On white

13.17
#24178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#24178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24178F
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24178F#FFFFFF#000000##FFFFFF
##24178F1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #24178f;
/* rgb */ color: rgb(36, 23, 143);
/* oklch */ color: oklch(32.9% 0.181 274.7);
Tailwind
colors: {
  custom: {
    50: '#7258b1',
    500: '#24178f',
    950: '#000000',
  },
}
SCSS
$custom: #24178f;
$custom-light: #7258b1;
$custom-dark: #000000;
JSON
{
  "hex": "#24178f",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 246.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32935,
    "c": 0.18138,
    "h": 274.7
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#24178F
secondary
#B3C141
accent
#EF39DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #24178F

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

Preview Lab → · Contrast checker → · Palette generator →

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