#24187D#24187D

#24187D is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.159 H 277.1°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#24187D
RGBrgb(36, 24, 125)
HSLhsl(247, 68%, 29%)
HSVhsv(247, 81%, 49%)
CMYKcmyk(71.2%, 80.8%, 0%, 51%)
CIE-LABlab(17.96, 37.86, -54.44)
CIE-LCHlch(17.96, 66.31, 304.82°)
OKLaboklab(30.94% 0.0196 -0.1573)
OKLCHoklch(30.94% 0.159 277.1)
XYZxyz(4.7547, 2.5086, 19.6317)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24187D #717D18
analogous
#183F7D #24187D #57187D
triadic
#24187D #7D2418 #187D24
tetradic
#24187D #7D183F #717D18 #187D57
square
#24187D #7D183F #717D18 #187D57
split-complementary
#24187D #7D5718 #3F7D18
monochromatic
#07051A #150E4A #24187D #3322B0 #4A37D9

Accessibility & contrast

On white

13.98
#24187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#24187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24187D
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24187D#FFFFFF#000000##FFFFFF
##24187D1.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24187d;
/* rgb */ color: rgb(36, 24, 125);
/* oklch */ color: oklch(30.9% 0.159 277.1);
Tailwind
colors: {
  custom: {
    50: '#6e58a4',
    500: '#24187d',
    950: '#000000',
  },
}
SCSS
$custom: #24187d;
$custom-light: #6e58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#24187d",
  "rgb": {
    "r": 36,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 247.129,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30944,
    "c": 0.15853,
    "h": 277.1
  },
  "luminance": 0.02509
}

Semantic roles & 50–950 ramp

primary
#24187D
secondary
#A4B23F
accent
#EB3DD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24187D

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

Preview Lab → · Contrast checker → · Palette generator →

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