#24177E#24177E

#24177E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.161 H 277.1°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#24177E
RGBrgb(36, 23, 126)
HSLhsl(248, 69%, 29%)
HSVhsv(248, 82%, 49%)
CMYKcmyk(71.4%, 81.7%, 0%, 50.6%)
CIE-LABlab(17.89, 38.72, -55.19)
CIE-LCHlch(17.89, 67.41, 305.05°)
OKLaboklab(30.93% 0.0198 -0.1595)
OKLCHoklch(30.93% 0.161 277.1)
XYZxyz(4.7986, 2.4938, 19.9631)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24177E #717E17
analogous
#173E7E #24177E #58177E
triadic
#24177E #7E2417 #177E24
tetradic
#24177E #7E173E #717E17 #177E58
square
#24177E #7E173E #717E17 #177E58
split-complementary
#24177E #7E5817 #3E7E17
monochromatic
#07051A #150E4A #24177E #3320B2 #4A35DA

Accessibility & contrast

On white

14.01
#24177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#24177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24177E
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24177E#FFFFFF#000000##FFFFFF
##24177E1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24177e;
/* rgb */ color: rgb(36, 23, 126);
/* oklch */ color: oklch(30.9% 0.161 277.1);
Tailwind
colors: {
  custom: {
    50: '#6e57a5',
    500: '#24177e',
    950: '#000000',
  },
}
SCSS
$custom: #24177e;
$custom-light: #6e57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24177e",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 247.573,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30931,
    "c": 0.1607,
    "h": 277.1
  },
  "luminance": 0.02494
}

Semantic roles & 50–950 ramp

primary
#24177E
secondary
#A4B33E
accent
#EC3CD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24177E

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

Preview Lab → · Contrast checker → · Palette generator →

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