#24147E#24147E

#24147E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.163 H 277.5°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#24147E
RGBrgb(36, 20, 126)
HSLhsl(249, 73%, 29%)
HSVhsv(249, 84%, 49%)
CMYKcmyk(71.4%, 84.1%, 0%, 50.6%)
CIE-LABlab(17.37, 40.22, -56.04)
CIE-LCHlch(17.37, 68.98, 305.67°)
OKLaboklab(30.57% 0.0212 -0.1619)
OKLCHoklch(30.57% 0.163 277.5)
XYZxyz(4.7424, 2.3813, 19.9443)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24147E #6E7E14
analogous
#14397E #24147E #59147E
triadic
#24147E #7E2414 #147E24
tetradic
#24147E #7E1439 #6E7E14 #147E59
square
#24147E #7E1439 #6E7E14 #147E59
split-complementary
#24147E #7E5914 #397E14
monochromatic
#08041A #150C49 #24147E #331CB3 #492EDE

Accessibility & contrast

On white

14.22
#24147E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#24147E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24147E
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24147E#FFFFFF#000000##FFFFFF
##24147E1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #24147e;
/* rgb */ color: rgb(36, 20, 126);
/* oklch */ color: oklch(30.6% 0.163 277.5);
Tailwind
colors: {
  custom: {
    50: '#6e56a5',
    500: '#24147e',
    950: '#000000',
  },
}
SCSS
$custom: #24147e;
$custom-light: #6e56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24147e",
  "rgb": {
    "r": 36,
    "g": 20,
    "b": 126
  },
  "hsl": {
    "h": 249.057,
    "s": 72.603,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30572,
    "c": 0.16331,
    "h": 277.5
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#24147E
secondary
#A1B33A
accent
#EF38D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24147E

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

Preview Lab → · Contrast checker → · Palette generator →

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