#24238D#24238D

#24238D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.168 H 273.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#24238D
RGBrgb(36, 35, 141)
HSLhsl(241, 60%, 35%)
HSVhsv(241, 75%, 55%)
CMYKcmyk(74.5%, 75.2%, 0%, 44.7%)
CIE-LABlab(21.94, 37.02, -57.94)
CIE-LCHlch(21.94, 68.75, 302.58°)
OKLaboklab(34.28% 0.0102 -0.1676)
OKLCHoklch(34.28% 0.168 273.5)
XYZxyz(6.1347, 3.4996, 25.5463)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24238D #8C8D23
analogous
#23578D #24238D #59238D
triadic
#24238D #8D2423 #238D24
tetradic
#24238D #8D2357 #8C8D23 #238D59
square
#24238D #8D2357 #8C8D23 #238D59
split-complementary
#24238D #8D5923 #578D23
monochromatic
#0B0B2B #17175C #24238D #312FBE #5755D5

Accessibility & contrast

On white

12.35
#24238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#24238D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24238D
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24238D#FFFFFF#000000##FFFFFF
##24238D1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #24238d;
/* rgb */ color: rgb(36, 35, 141);
/* oklch */ color: oklch(34.3% 0.168 273.5);
Tailwind
colors: {
  custom: {
    50: '#705faf',
    500: '#24238d',
    950: '#000000',
  },
}
SCSS
$custom: #24238d;
$custom-light: #705faf;
$custom-dark: #000000;
JSON
{
  "hex": "#24238d",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 240.566,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34283,
    "c": 0.16791,
    "h": 273.5
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#24238D
secondary
#B8B953
accent
#E344E2
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #24238D

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

Preview Lab → · Contrast checker → · Palette generator →

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