#24176F#24176F

#24176F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.142 H 279.7°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#24176F
RGBrgb(36, 23, 111)
HSLhsl(249, 66%, 26%)
HSVhsv(249, 79%, 44%)
CMYKcmyk(67.6%, 79.3%, 0%, 56.5%)
CIE-LABlab(16.18, 33.78, -48.36)
CIE-LCHlch(16.18, 58.99, 304.93°)
OKLaboklab(29.23% 0.024 -0.1396)
OKLCHoklch(29.23% 0.142 279.7)
XYZxyz(3.9023, 2.1352, 15.2423)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24176F #626F17
analogous
#17366F #24176F #50176F
triadic
#24176F #6F2417 #176F24
tetradic
#24176F #6F1736 #626F17 #176F50
square
#24176F #6F1736 #626F17 #176F50
split-complementary
#24176F #6F5017 #366F17
monochromatic
#080519 #140C3C #24176F #3422A2 #462DD3

Accessibility & contrast

On white

14.71
#24176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#24176F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24176F
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24176F#FFFFFF#000000##FFFFFF
##24176F1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #24176f;
/* rgb */ color: rgb(36, 23, 111);
/* oklch */ color: oklch(29.2% 0.142 279.7);
Tailwind
colors: {
  custom: {
    50: '#6a5699',
    500: '#24176f',
    950: '#000000',
  },
}
SCSS
$custom: #24176f;
$custom-light: #6a5699;
$custom-dark: #000000;
JSON
{
  "hex": "#24176f",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 248.864,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29228,
    "c": 0.14164,
    "h": 279.7
  },
  "luminance": 0.02136
}

Semantic roles & 50–950 ramp

primary
#24176F
secondary
#95A53D
accent
#E93FD0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #24176F

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

Preview Lab → · Contrast checker → · Palette generator →

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