#24236C#24236C

#24236C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.9% C 0.123 H 277.0°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#24236C
RGBrgb(36, 35, 108)
HSLhsl(241, 51%, 28%)
HSVhsv(241, 68%, 42%)
CMYKcmyk(66.7%, 67.6%, 0%, 57.6%)
CIE-LABlab(18.63, 25.17, -42.40)
CIE-LCHlch(18.63, 49.31, 300.69°)
OKLaboklab(30.89% 0.015 -0.1222)
OKLCHoklch(30.89% 0.123 277)
XYZxyz(4.0345, 2.6595, 14.4852)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24236C #6B6C23
analogous
#23466C #24236C #48236C
triadic
#24236C #6C2423 #236C24
tetradic
#24236C #6C2346 #6B6C23 #236C48
square
#24236C #6C2346 #6B6C23 #236C48
split-complementary
#24236C #6C4823 #466C23
monochromatic
#080717 #15143E #24236C #33329A #4846C3

Accessibility & contrast

On white

13.71
#24236C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#24236C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24236C
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24236C#FFFFFF#000000##FFFFFF
##24236C1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#002A6B
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #24236c;
/* rgb */ color: rgb(36, 35, 108);
/* oklch */ color: oklch(30.9% 0.123 277.0);
Tailwind
colors: {
  custom: {
    50: '#685e97',
    500: '#24236c',
    950: '#000000',
  },
}
SCSS
$custom: #24236c;
$custom-light: #685e97;
$custom-dark: #000000;
JSON
{
  "hex": "#24236c",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 108
  },
  "hsl": {
    "h": 240.822,
    "s": 51.049,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30888,
    "c": 0.12311,
    "h": 277
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#24236C
secondary
#9E9F4B
accent
#DB4DD9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #24236C

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

Preview Lab → · Contrast checker → · Palette generator →

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