#24238C#24238C

#24238C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.167 H 273.6°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#24238C
RGBrgb(36, 35, 140)
HSLhsl(241, 60%, 34%)
HSVhsv(241, 75%, 55%)
CMYKcmyk(74.3%, 75%, 0%, 45.1%)
CIE-LABlab(21.84, 36.67, -57.49)
CIE-LCHlch(21.84, 68.19, 302.53°)
OKLaboklab(34.17% 0.0104 -0.1663)
OKLCHoklch(34.17% 0.167 273.6)
XYZxyz(6.0606, 3.4700, 25.1562)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24238C #8B8C23
analogous
#23578C #24238C #58238C
triadic
#24238C #8C2423 #238C24
tetradic
#24238C #8C2357 #8B8C23 #238C58
square
#24238C #8C2357 #8B8C23 #238C58
split-complementary
#24238C #8C5823 #578C23
monochromatic
#0B0B2A #17175B #24238C #312FBD #5655D4

Accessibility & contrast

On white

12.40
#24238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#24238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24238C
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24238C#FFFFFF#000000##FFFFFF
##24238C1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #24238c;
/* rgb */ color: rgb(36, 35, 140);
/* oklch */ color: oklch(34.2% 0.167 273.6);
Tailwind
colors: {
  custom: {
    50: '#705faf',
    500: '#24238c',
    950: '#000000',
  },
}
SCSS
$custom: #24238c;
$custom-light: #705faf;
$custom-dark: #000000;
JSON
{
  "hex": "#24238c",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 240.571,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34174,
    "c": 0.16662,
    "h": 273.6
  },
  "luminance": 0.03471
}

Semantic roles & 50–950 ramp

primary
#24238C
secondary
#B8B852
accent
#E345E2
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #24238C

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

Preview Lab → · Contrast checker → · Palette generator →

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