#24177F#24177F

#24177F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.162 H 276.9°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#24177F
RGBrgb(36, 23, 127)
HSLhsl(248, 69%, 29%)
HSVhsv(248, 82%, 50%)
CMYKcmyk(71.7%, 81.9%, 0%, 50.2%)
CIE-LABlab(18.01, 39.04, -55.63)
CIE-LCHlch(18.01, 67.96, 305.06°)
OKLaboklab(31.05% 0.0195 -0.1608)
OKLCHoklch(31.05% 0.162 276.9)
XYZxyz(4.8635, 2.5197, 20.3046)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24177F #727F17
analogous
#173E7F #24177F #58177F
triadic
#24177F #7F2417 #177F24
tetradic
#24177F #7F173E #727F17 #177F58
square
#24177F #7F173E #727F17 #177F58
split-complementary
#24177F #7F5817 #3E7F17
monochromatic
#07051A #150E4B #24177F #3320B3 #4A36DB

Accessibility & contrast

On white

13.96
#24177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24177F
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24177F#FFFFFF#000000##FFFFFF
##24177F1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #24177f;
/* rgb */ color: rgb(36, 23, 127);
/* oklch */ color: oklch(31.0% 0.162 276.9);
Tailwind
colors: {
  custom: {
    50: '#6e57a5',
    500: '#24177f',
    950: '#000000',
  },
}
SCSS
$custom: #24177f;
$custom-light: #6e57a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24177f",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 247.5,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31047,
    "c": 0.16195,
    "h": 276.9
  },
  "luminance": 0.0252
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24177F

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

Preview Lab → · Contrast checker → · Palette generator →

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