#24237A#24237A

#24237A is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.3% C 0.143 H 275.4°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#24237A
RGBrgb(36, 35, 122)
HSLhsl(241, 55%, 31%)
HSVhsv(241, 71%, 48%)
CMYKcmyk(70.5%, 71.3%, 0%, 52.2%)
CIE-LABlab(19.97, 30.28, -49.21)
CIE-LCHlch(19.97, 57.78, 301.61°)
OKLaboklab(32.28% 0.0133 -0.1421)
OKLCHoklch(32.28% 0.143 275.4)
XYZxyz(4.8403, 2.9818, 18.7291)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24237A #797A23
analogous
#234D7A #24237A #4F237A
triadic
#24237A #7A2423 #237A24
tetradic
#24237A #7A234D #797A23 #237A4F
square
#24237A #7A234D #797A23 #237A4F
split-complementary
#24237A #7A4F23 #4D7A23
monochromatic
#08081B #16154A #24237A #3231AA #4D4CCC

Accessibility & contrast

On white

13.15
#24237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#24237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24237A
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24237A#FFFFFF#000000##FFFFFF
##24237A1.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#002C78
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #24237a;
/* rgb */ color: rgb(36, 35, 122);
/* oklch */ color: oklch(32.3% 0.143 275.4);
Tailwind
colors: {
  custom: {
    50: '#6c5ea1',
    500: '#24237a',
    950: '#000000',
  },
}
SCSS
$custom: #24237a;
$custom-light: #6c5ea1;
$custom-dark: #000000;
JSON
{
  "hex": "#24237a",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 240.69,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32277,
    "c": 0.14276,
    "h": 275.4
  },
  "luminance": 0.02982
}

Semantic roles & 50–950 ramp

primary
#24237A
secondary
#ACAD4C
accent
#DF49DD
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #24237A

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

Preview Lab → · Contrast checker → · Palette generator →

#24237A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva