#24179E#24179E

#24179E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.8% C 0.199 H 273.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#24179E
RGBrgb(36, 23, 158)
HSLhsl(246, 75%, 35%)
HSVhsv(246, 85%, 62%)
CMYKcmyk(77.2%, 85.4%, 0%, 38%)
CIE-LABlab(21.78, 48.73, -68.69)
CIE-LCHlch(21.78, 84.22, 305.35°)
OKLaboklab(34.75% 0.0106 -0.1986)
OKLCHoklch(34.75% 0.199 273.1)
XYZxyz(7.2034, 3.4557, 32.6285)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24179E #919E17
analogous
#174D9E #24179E #67179E
triadic
#24179E #9E2417 #179E24
tetradic
#24179E #9E174D #919E17 #179E67
square
#24179E #9E174D #919E17 #179E67
split-complementary
#24179E #9E6717 #4D9E17
monochromatic
#0C0733 #180F69 #24179E #301FD3 #594BE5

Accessibility & contrast

On white

12.42
#24179E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#24179E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24179E
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24179E#FFFFFF#000000##FFFFFF
##24179E1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003AA2
Deuteranopia (green-blind)
#002E9C
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #24179e;
/* rgb */ color: rgb(36, 23, 158);
/* oklch */ color: oklch(34.8% 0.199 273.1);
Tailwind
colors: {
  custom: {
    50: '#765abc',
    500: '#24179e',
    950: '#000000',
  },
}
SCSS
$custom: #24179e;
$custom-light: #765abc;
$custom-dark: #000000;
JSON
{
  "hex": "#24179e",
  "rgb": {
    "r": 36,
    "g": 23,
    "b": 158
  },
  "hsl": {
    "h": 245.778,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3475,
    "c": 0.19893,
    "h": 273.1
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24179E

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

Preview Lab → · Contrast checker → · Palette generator →

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