#24138F#24138F

#24138F is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.5% C 0.184 H 275.0°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#24138F
RGBrgb(36, 19, 143)
HSLhsl(248, 77%, 32%)
HSVhsv(248, 87%, 56%)
CMYKcmyk(74.8%, 86.7%, 0%, 43.9%)
CIE-LABlab(19.32, 45.91, -63.52)
CIE-LCHlch(19.32, 78.37, 305.86°)
OKLaboklab(32.52% 0.0162 -0.1836)
OKLCHoklch(32.52% 0.184 275)
XYZxyz(5.9167, 2.8234, 26.2144)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24138F #7E8F13
analogous
#13408F #24138F #62138F
triadic
#24138F #8F2413 #138F24
tetradic
#24138F #8F1340 #7E8F13 #138F62
square
#24138F #8F1340 #7E8F13 #138F62
split-complementary
#24138F #8F6213 #408F13
monochromatic
#090523 #160C59 #24138F #321AC5 #5038E5

Accessibility & contrast

On white

13.42
#24138F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24138F
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24138F#FFFFFF#000000##FFFFFF
##24138F1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.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: #24138f;
/* rgb */ color: rgb(36, 19, 143);
/* oklch */ color: oklch(32.5% 0.184 275.0);
Tailwind
colors: {
  custom: {
    50: '#7256b1',
    500: '#24138f',
    950: '#000000',
  },
}
SCSS
$custom: #24138f;
$custom-light: #7256b1;
$custom-dark: #000000;
JSON
{
  "hex": "#24138f",
  "rgb": {
    "r": 36,
    "g": 19,
    "b": 143
  },
  "hsl": {
    "h": 248.226,
    "s": 76.543,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32521,
    "c": 0.1843,
    "h": 275
  },
  "luminance": 0.02824
}

Semantic roles & 50–950 ramp

primary
#24138F
secondary
#B0C33B
accent
#F335D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #24138F

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

Preview Lab → · Contrast checker → · Palette generator →

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