#24177D#24177D

#24177D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.159 H 277.2°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#24177D
RGBrgb(36, 23, 125)
HSLhsl(248, 69%, 29%)
HSVhsv(248, 82%, 49%)
CMYKcmyk(71.2%, 81.6%, 0%, 51%)
CIE-LABlab(17.77, 38.39, -54.74)
CIE-LCHlch(17.77, 66.86, 305.04°)
OKLaboklab(30.82% 0.0201 -0.1582)
OKLCHoklch(30.82% 0.159 277.2)
XYZxyz(4.7344, 2.4681, 19.6250)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24177D #707D17
analogous
#173D7D #24177D #57177D
triadic
#24177D #7D2417 #177D24
tetradic
#24177D #7D173D #707D17 #177D57
square
#24177D #7D173D #707D17 #177D57
split-complementary
#24177D #7D5717 #3D7D17
monochromatic
#07051A #150D49 #24177D #3321B1 #4A35DA

Accessibility & contrast

On white

14.06
#24177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#24177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24177D
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24177D#FFFFFF#000000##FFFFFF
##24177D1.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #24177d;
/* rgb */ color: rgb(36, 23, 125);
/* oklch */ color: oklch(30.8% 0.159 277.2);
Tailwind
colors: {
  custom: {
    50: '#6e57a4',
    500: '#24177d',
    950: '#000000',
  },
}
SCSS
$custom: #24177d;
$custom-light: #6e57a4;
$custom-dark: #000000;
JSON
{
  "hex": "#24177d",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 247.647,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30815,
    "c": 0.15946,
    "h": 277.2
  },
  "luminance": 0.02469
}

Semantic roles & 50–950 ramp

primary
#24177D
secondary
#A3B23E
accent
#EC3CD5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24177D

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

Preview Lab → · Contrast checker → · Palette generator →

#24177D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva