#24138C#24138C

#24138C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.2% C 0.181 H 275.4°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#24138C
RGBrgb(36, 19, 140)
HSLhsl(248, 76%, 31%)
HSVhsv(248, 86%, 55%)
CMYKcmyk(74.3%, 86.4%, 0%, 45.1%)
CIE-LABlab(18.94, 45.00, -62.27)
CIE-LCHlch(18.94, 76.83, 305.85°)
OKLaboklab(32.15% 0.0171 -0.18)
OKLCHoklch(32.15% 0.181 275.4)
XYZxyz(5.6925, 2.7337, 25.0335)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24138C #7B8C13
analogous
#133E8C #24138C #60138C
triadic
#24138C #8C2413 #138C24
tetradic
#24138C #8C133E #7B8C13 #138C60
square
#24138C #8C133E #7B8C13 #138C60
split-complementary
#24138C #8C6013 #3E8C13
monochromatic
#080420 #160C56 #24138C #321AC2 #4E36E4

Accessibility & contrast

On white

13.58
#24138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#24138C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24138C
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24138C#FFFFFF#000000##FFFFFF
##24138C1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #24138c;
/* rgb */ color: rgb(36, 19, 140);
/* oklch */ color: oklch(32.2% 0.181 275.4);
Tailwind
colors: {
  custom: {
    50: '#7256af',
    500: '#24138c',
    950: '#000000',
  },
}
SCSS
$custom: #24138c;
$custom-light: #7256af;
$custom-dark: #000000;
JSON
{
  "hex": "#24138c",
  "rgb": {
    "r": 36,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 248.43,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32153,
    "c": 0.18079,
    "h": 275.4
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#24138C
secondary
#ADC03B
accent
#F335D8
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #24138C

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

Preview Lab → · Contrast checker → · Palette generator →

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