#24198C#24198C

#24198C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.8% C 0.176 H 274.9°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#24198C
RGBrgb(36, 25, 140)
HSLhsl(246, 70%, 32%)
HSVhsv(246, 82%, 55%)
CMYKcmyk(74.3%, 82.1%, 0%, 45.1%)
CIE-LABlab(19.90, 42.21, -60.70)
CIE-LCHlch(19.90, 73.93, 304.81°)
OKLaboklab(32.81% 0.015 -0.1755)
OKLCHoklch(32.81% 0.176 274.9)
XYZxyz(5.8072, 2.9632, 25.0718)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24198C #818C19
analogous
#19488C #24198C #5D198C
triadic
#24198C #8C2419 #198C24
tetradic
#24198C #8C1948 #818C19 #198C5D
square
#24198C #8C1948 #818C19 #198C5D
split-complementary
#24198C #8C5D19 #488C19
monochromatic
#090624 #171058 #24198C #3122C0 #5142DD

Accessibility & contrast

On white

13.18
#24198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#24198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24198C
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24198C#FFFFFF#000000##FFFFFF
##24198C1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358F
Deuteranopia (green-blind)
#002B8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #24198c;
/* rgb */ color: rgb(36, 25, 140);
/* oklch */ color: oklch(32.8% 0.176 274.9);
Tailwind
colors: {
  custom: {
    50: '#7159af',
    500: '#24198c',
    950: '#000000',
  },
}
SCSS
$custom: #24198c;
$custom-light: #7159af;
$custom-dark: #000000;
JSON
{
  "hex": "#24198c",
  "rgb": {
    "r": 36,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 245.739,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3281,
    "c": 0.17615,
    "h": 274.9
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#24198C
secondary
#B2BE43
accent
#ED3BDC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #24198C

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

Preview Lab → · Contrast checker → · Palette generator →

#24198C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva