#24197D#24197D

#24197D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.158 H 276.9°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#24197D
RGBrgb(36, 25, 125)
HSLhsl(247, 67%, 29%)
HSVhsv(247, 80%, 49%)
CMYKcmyk(71.2%, 80%, 0%, 51%)
CIE-LABlab(18.15, 37.32, -54.13)
CIE-LCHlch(18.15, 65.75, 304.59°)
OKLaboklab(31.08% 0.019 -0.1564)
OKLCHoklch(31.08% 0.158 276.9)
XYZxyz(4.7757, 2.5506, 19.6387)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24197D #727D19
analogous
#19407D #24197D #56197D
triadic
#24197D #7D2419 #197D24
tetradic
#24197D #7D1940 #727D19 #197D56
square
#24197D #7D1940 #727D19 #197D56
split-complementary
#24197D #7D5619 #407D19
monochromatic
#07051A #150F4A #24197D #3323B0 #4A39D7

Accessibility & contrast

On white

13.91
#24197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#24197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24197D
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24197D#FFFFFF#000000##FFFFFF
##24197D1.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24197d;
/* rgb */ color: rgb(36, 25, 125);
/* oklch */ color: oklch(31.1% 0.158 276.9);
Tailwind
colors: {
  custom: {
    50: '#6d58a4',
    500: '#24197d',
    950: '#000000',
  },
}
SCSS
$custom: #24197d;
$custom-light: #6d58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#24197d",
  "rgb": {
    "r": 36,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 246.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31075,
    "c": 0.15758,
    "h": 276.9
  },
  "luminance": 0.02551
}

Semantic roles & 50–950 ramp

primary
#24197D
secondary
#A5B140
accent
#EA3ED7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24197D

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

Preview Lab → · Contrast checker → · Palette generator →

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