#24128F#24128F

#24128F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.185 H 275.1°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#24128F
RGBrgb(36, 18, 143)
HSLhsl(249, 78%, 32%)
HSVhsv(249, 87%, 56%)
CMYKcmyk(74.8%, 87.4%, 0%, 43.9%)
CIE-LABlab(19.18, 46.32, -63.75)
CIE-LCHlch(19.18, 78.80, 306.00°)
OKLaboklab(32.43% 0.0165 -0.1842)
OKLCHoklch(32.43% 0.185 275.1)
XYZxyz(5.9002, 2.7903, 26.2089)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24128F #7D8F12
analogous
#123F8F #24128F #63128F
triadic
#24128F #8F2412 #128F24
tetradic
#24128F #8F123F #7D8F12 #128F63
square
#24128F #8F123F #7D8F12 #128F63
split-complementary
#24128F #8F6312 #3F8F12
monochromatic
#090422 #160B59 #24128F #3219C5 #4F36E6

Accessibility & contrast

On white

13.48
#24128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#24128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24128F
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24128F#FFFFFF#000000##FFFFFF
##24128F1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#00298D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #24128f;
/* rgb */ color: rgb(36, 18, 143);
/* oklch */ color: oklch(32.4% 0.185 275.1);
Tailwind
colors: {
  custom: {
    50: '#7256b1',
    500: '#24128f',
    950: '#000000',
  },
}
SCSS
$custom: #24128f;
$custom-light: #7256b1;
$custom-dark: #000000;
JSON
{
  "hex": "#24128f",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 248.64,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32426,
    "c": 0.18497,
    "h": 275.1
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#24128F
secondary
#AFC33A
accent
#F434D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #24128F

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

Preview Lab → · Contrast checker → · Palette generator →

#24128F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva