#24237C#24237C

#24237C is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.145 H 275.1°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#24237C
RGBrgb(36, 35, 124)
HSLhsl(241, 56%, 31%)
HSVhsv(241, 72%, 49%)
CMYKcmyk(71%, 71.8%, 0%, 51.4%)
CIE-LABlab(20.17, 31.00, -50.15)
CIE-LCHlch(20.17, 58.96, 301.72°)
OKLaboklab(32.48% 0.013 -0.1449)
OKLCHoklch(32.48% 0.145 275.1)
XYZxyz(4.9655, 3.0319, 19.3884)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24237C #7B7C23
analogous
#234E7C #24237C #50237C
triadic
#24237C #7C2423 #237C24
tetradic
#24237C #7C234E #7B7C23 #237C50
square
#24237C #7C234E #7B7C23 #237C50
split-complementary
#24237C #7C5023 #4E7C23
monochromatic
#08081D #16164C #24237C #3230AC #4E4DCD

Accessibility & contrast

On white

13.07
#24237C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#24237C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24237C
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24237C#FFFFFF#000000##FFFFFF
##24237C1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #24237c;
/* rgb */ color: rgb(36, 35, 124);
/* oklch */ color: oklch(32.5% 0.145 275.1);
Tailwind
colors: {
  custom: {
    50: '#6c5ea3',
    500: '#24237c',
    950: '#000000',
  },
}
SCSS
$custom: #24237c;
$custom-light: #6c5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#24237c",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 124
  },
  "hsl": {
    "h": 240.674,
    "s": 55.975,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32482,
    "c": 0.14549,
    "h": 275.1
  },
  "luminance": 0.03032
}

Semantic roles & 50–950 ramp

primary
#24237C
secondary
#ADAF4C
accent
#DF49DE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #24237C

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

Preview Lab → · Contrast checker → · Palette generator →

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