#24179D#24179D

#24179D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.6% C 0.198 H 273.2°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#24179D
RGBrgb(36, 23, 157)
HSLhsl(246, 74%, 35%)
HSVhsv(246, 85%, 62%)
CMYKcmyk(77.1%, 85.4%, 0%, 38.4%)
CIE-LABlab(21.66, 48.43, -68.29)
CIE-LCHlch(21.66, 83.72, 305.35°)
OKLaboklab(34.63% 0.0109 -0.1975)
OKLCHoklch(34.63% 0.198 273.2)
XYZxyz(7.1177, 3.4214, 32.1770)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24179D #909D17
analogous
#174D9D #24179D #67179D
triadic
#24179D #9D2417 #179D24
tetradic
#24179D #9D174D #909D17 #179D67
square
#24179D #9D174D #909D17 #179D67
split-complementary
#24179D #9D6717 #4D9D17
monochromatic
#0C0732 #180F68 #24179D #301FD2 #594AE4

Accessibility & contrast

On white

12.47
#24179D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#24179D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24179D
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24179D#FFFFFF#000000##FFFFFF
##24179D1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA1
Deuteranopia (green-blind)
#002D9B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #24179d;
/* rgb */ color: rgb(36, 23, 157);
/* oklch */ color: oklch(34.6% 0.198 273.2);
Tailwind
colors: {
  custom: {
    50: '#755abb',
    500: '#24179d',
    950: '#000000',
  },
}
SCSS
$custom: #24179d;
$custom-light: #755abb;
$custom-dark: #000000;
JSON
{
  "hex": "#24179d",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 157
  },
  "hsl": {
    "h": 245.821,
    "s": 74.444,
    "l": 35.294
  },
  "oklch": {
    "l": 0.34628,
    "c": 0.19778,
    "h": 273.2
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#24179D
secondary
#BAC64A
accent
#F137DF
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #24179D

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

Preview Lab → · Contrast checker → · Palette generator →

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