#24237F#24237F

#24237F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.150 H 274.8°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#24237F
RGBrgb(36, 35, 127)
HSLhsl(241, 57%, 32%)
HSVhsv(241, 72%, 50%)
CMYKcmyk(71.7%, 72.4%, 0%, 50.2%)
CIE-LABlab(20.48, 32.08, -51.56)
CIE-LCHlch(20.48, 60.72, 301.89°)
OKLaboklab(32.79% 0.0126 -0.149)
OKLCHoklch(32.79% 0.15 274.8)
XYZxyz(5.1581, 3.1090, 20.4028)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24237F #7E7F23
analogous
#23507F #24237F #52237F
triadic
#24237F #7F2423 #237F24
tetradic
#24237F #7F2350 #7E7F23 #237F52
square
#24237F #7F2350 #7E7F23 #237F52
split-complementary
#24237F #7F5223 #507F23
monochromatic
#09091F #16164F #24237F #3230AF #504ECE

Accessibility & contrast

On white

12.95
#24237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#24237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24237F
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24237F#FFFFFF#000000##FFFFFF
##24237F1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #24237f;
/* rgb */ color: rgb(36, 35, 127);
/* oklch */ color: oklch(32.8% 0.150 274.8);
Tailwind
colors: {
  custom: {
    50: '#6d5fa5',
    500: '#24237f',
    950: '#000000',
  },
}
SCSS
$custom: #24237f;
$custom-light: #6d5fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#24237f",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 240.652,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32793,
    "c": 0.14954,
    "h": 274.8
  },
  "luminance": 0.03109
}

Semantic roles & 50–950 ramp

primary
#24237F
secondary
#B0B14C
accent
#E048DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #24237F

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

Preview Lab → · Contrast checker → · Palette generator →

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