#24118E#24118E

#24118E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.2% C 0.184 H 275.3°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#24118E
RGBrgb(36, 17, 142)
HSLhsl(249, 79%, 31%)
HSVhsv(249, 88%, 56%)
CMYKcmyk(74.6%, 88%, 0%, 44.3%)
CIE-LABlab(18.92, 46.43, -63.56)
CIE-LCHlch(18.92, 78.71, 306.14°)
OKLaboklab(32.21% 0.0171 -0.1837)
OKLCHoklch(32.21% 0.184 275.3)
XYZxyz(5.8089, 2.7284, 25.8064)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24118E #7B8E11
analogous
#113C8E #24118E #62118E
triadic
#24118E #8E2411 #118E24
tetradic
#24118E #8E113C #7B8E11 #118E62
square
#24118E #8E113C #7B8E11 #118E62
split-complementary
#24118E #8E6211 #3C8E11
monochromatic
#080421 #160A57 #24118E #3218C5 #4E33E7

Accessibility & contrast

On white

13.59
#24118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#24118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24118E
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24118E#FFFFFF#000000##FFFFFF
##24118E1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00288C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #24118e;
/* rgb */ color: rgb(36, 17, 142);
/* oklch */ color: oklch(32.2% 0.184 275.3);
Tailwind
colors: {
  custom: {
    50: '#7256b0',
    500: '#24118e',
    950: '#000000',
  },
}
SCSS
$custom: #24118e;
$custom-light: #7256b0;
$custom-dark: #000000;
JSON
{
  "hex": "#24118e",
  "rgb": {
    "r": 36,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 249.12,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3221,
    "c": 0.18446,
    "h": 275.3
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#24118E
secondary
#ADC238
accent
#F533D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #24118E

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

Preview Lab → · Contrast checker → · Palette generator →

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