#24187E#24187E

#24187E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.160 H 276.9°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#24187E
RGBrgb(36, 24, 126)
HSLhsl(247, 68%, 29%)
HSVhsv(247, 81%, 49%)
CMYKcmyk(71.4%, 81%, 0%, 50.6%)
CIE-LABlab(18.07, 38.19, -54.89)
CIE-LCHlch(18.07, 66.87, 304.83°)
OKLaboklab(31.06% 0.0193 -0.1586)
OKLCHoklch(31.06% 0.16 276.9)
XYZxyz(4.8189, 2.5343, 19.9698)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24187E #727E18
analogous
#183F7E #24187E #57187E
triadic
#24187E #7E2418 #187E24
tetradic
#24187E #7E183F #727E18 #187E57
square
#24187E #7E183F #727E18 #187E57
split-complementary
#24187E #7E5718 #3F7E18
monochromatic
#07051A #150E4B #24187E #3322B1 #4A37D9

Accessibility & contrast

On white

13.93
#24187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#24187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24187E
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24187E#FFFFFF#000000##FFFFFF
##24187E1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24187e;
/* rgb */ color: rgb(36, 24, 126);
/* oklch */ color: oklch(31.1% 0.160 276.9);
Tailwind
colors: {
  custom: {
    50: '#6e58a5',
    500: '#24187e',
    950: '#000000',
  },
}
SCSS
$custom: #24187e;
$custom-light: #6e58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24187e",
  "rgb": {
    "r": 36,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 247.059,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31058,
    "c": 0.15979,
    "h": 276.9
  },
  "luminance": 0.02535
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24187E

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

Preview Lab → · Contrast checker → · Palette generator →

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