#24237E#24237E

#24237E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.148 H 274.9°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#24237E
RGBrgb(36, 35, 126)
HSLhsl(241, 57%, 32%)
HSVhsv(241, 72%, 49%)
CMYKcmyk(71.4%, 72.2%, 0%, 50.6%)
CIE-LABlab(20.37, 31.72, -51.09)
CIE-LCHlch(20.37, 60.14, 301.84°)
OKLaboklab(32.69% 0.0127 -0.1476)
OKLCHoklch(32.69% 0.148 274.9)
XYZxyz(5.0932, 3.0830, 20.0613)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24237E #7D7E23
analogous
#23507E #24237E #52237E
triadic
#24237E #7E2423 #237E24
tetradic
#24237E #7E2350 #7D7E23 #237E52
square
#24237E #7E2350 #7D7E23 #237E52
split-complementary
#24237E #7E5223 #507E23
monochromatic
#09081E #16164E #24237E #3230AE #4F4ECE

Accessibility & contrast

On white

12.99
#24237E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24237E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24237E#FFFFFF#000000##FFFFFF
##24237E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #24237e;
/* rgb */ color: rgb(36, 35, 126);
/* oklch */ color: oklch(32.7% 0.148 274.9);
Tailwind
colors: {
  custom: {
    50: '#6d5fa4',
    500: '#24237e',
    950: '#000000',
  },
}
SCSS
$custom: #24237e;
$custom-light: #6d5fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#24237e",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 126
  },
  "hsl": {
    "h": 240.659,
    "s": 56.522,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32689,
    "c": 0.14819,
    "h": 274.9
  },
  "luminance": 0.03083
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24237E

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

Preview Lab → · Contrast checker → · Palette generator →

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