#24237D#24237D

#24237D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.147 H 275.0°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#24237D
RGBrgb(36, 35, 125)
HSLhsl(241, 56%, 31%)
HSVhsv(241, 72%, 49%)
CMYKcmyk(71.2%, 72%, 0%, 51%)
CIE-LABlab(20.27, 31.36, -50.62)
CIE-LCHlch(20.27, 59.55, 301.78°)
OKLaboklab(32.58% 0.0129 -0.1463)
OKLCHoklch(32.58% 0.147 275)
XYZxyz(5.0290, 3.0573, 19.7232)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24237D #7C7D23
analogous
#234F7D #24237D #51237D
triadic
#24237D #7D2423 #237D24
tetradic
#24237D #7D234F #7C7D23 #237D51
square
#24237D #7D234F #7C7D23 #237D51
split-complementary
#24237D #7D5123 #4F7D23
monochromatic
#08081D #16164D #24237D #3230AD #4F4DCD

Accessibility & contrast

On white

13.03
#24237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24237D
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24237D#FFFFFF#000000##FFFFFF
##24237D1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24237d;
/* rgb */ color: rgb(36, 35, 125);
/* oklch */ color: oklch(32.6% 0.147 275.0);
Tailwind
colors: {
  custom: {
    50: '#6c5ea4',
    500: '#24237d',
    950: '#000000',
  },
}
SCSS
$custom: #24237d;
$custom-light: #6c5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#24237d",
  "rgb": {
    "r": 36,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 240.667,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32585,
    "c": 0.14684,
    "h": 275
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24237D

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

Preview Lab → · Contrast checker → · Palette generator →

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