#24188C#24188C

#24188C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.7% C 0.177 H 275.0°. Best body text is #FFFFFF at 13.25:1 contrast (WCAG AA passes).

Color values

HEX#24188C
RGBrgb(36, 24, 140)
HSLhsl(246, 71%, 32%)
HSVhsv(246, 83%, 55%)
CMYKcmyk(74.3%, 82.9%, 0%, 45.1%)
CIE-LABlab(19.73, 42.70, -60.98)
CIE-LCHlch(19.73, 74.44, 305.00°)
OKLaboklab(32.69% 0.0154 -0.1763)
OKLCHoklch(32.69% 0.177 275)
XYZxyz(5.7863, 2.9212, 25.0648)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24188C #808C18
analogous
#18468C #24188C #5E188C
triadic
#24188C #8C2418 #188C24
tetradic
#24188C #8C1846 #808C18 #188C5E
square
#24188C #8C1846 #808C18 #188C5E
split-complementary
#24188C #8C5E18 #468C18
monochromatic
#090624 #170F58 #24188C #3121C0 #5040DE

Accessibility & contrast

On white

13.25
#24188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#24188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24188C
13.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24188C#FFFFFF#000000##FFFFFF
##24188C1.0013.251.5813.25
#FFFFFF13.251.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24188c;
/* rgb */ color: rgb(36, 24, 140);
/* oklch */ color: oklch(32.7% 0.177 275.0);
Tailwind
colors: {
  custom: {
    50: '#7159af',
    500: '#24188c',
    950: '#000000',
  },
}
SCSS
$custom: #24188c;
$custom-light: #7159af;
$custom-dark: #000000;
JSON
{
  "hex": "#24188c",
  "rgb": {
    "r": 36,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 246.207,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32692,
    "c": 0.17699,
    "h": 275
  },
  "luminance": 0.02922
}

Semantic roles & 50–950 ramp

primary
#24188C
secondary
#B2BF41
accent
#ED3ADB
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #24188C

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

Preview Lab → · Contrast checker → · Palette generator →

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