#24187C#24187C

#24187C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.157 H 277.2°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#24187C
RGBrgb(36, 24, 124)
HSLhsl(247, 68%, 29%)
HSVhsv(247, 81%, 49%)
CMYKcmyk(71%, 80.6%, 0%, 51.4%)
CIE-LABlab(17.84, 37.53, -53.99)
CIE-LCHlch(17.84, 65.76, 304.81°)
OKLaboklab(30.83% 0.0198 -0.156)
OKLCHoklch(30.83% 0.157 277.2)
XYZxyz(4.6911, 2.4832, 19.2970)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24187C #707C18
analogous
#183E7C #24187C #56187C
triadic
#24187C #7C2418 #187C24
tetradic
#24187C #7C183E #707C18 #187C56
square
#24187C #7C183E #707C18 #187C56
split-complementary
#24187C #7C5618 #3E7C18
monochromatic
#07051A #150E49 #24187C #3322AF #4A36D8

Accessibility & contrast

On white

14.03
#24187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24187C
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24187C#FFFFFF#000000##FFFFFF
##24187C1.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00277A
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #24187c;
/* rgb */ color: rgb(36, 24, 124);
/* oklch */ color: oklch(30.8% 0.157 277.2);
Tailwind
colors: {
  custom: {
    50: '#6d58a3',
    500: '#24187c',
    950: '#000000',
  },
}
SCSS
$custom: #24187c;
$custom-light: #6d58a3;
$custom-dark: #000000;
JSON
{
  "hex": "#24187c",
  "rgb": {
    "r": 36,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 247.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30829,
    "c": 0.15728,
    "h": 277.2
  },
  "luminance": 0.02484
}

Semantic roles & 50–950 ramp

primary
#24187C
secondary
#A3B13F
accent
#EA3DD6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24187C

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

Preview Lab → · Contrast checker → · Palette generator →

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