#24317B#24317B

#24317B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.126 H 270.9°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#24317B
RGBrgb(36, 49, 123)
HSLhsl(231, 55%, 31%)
HSVhsv(231, 71%, 48%)
CMYKcmyk(70.7%, 60.2%, 0%, 51.8%)
CIE-LABlab(23.68, 21.20, -43.79)
CIE-LCHlch(23.68, 48.65, 295.83°)
OKLaboklab(35.02% 0.0019 -0.1262)
OKLCHoklch(35.02% 0.126 270.9)
XYZxyz(5.3998, 4.0012, 19.2228)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24317B #7B6E24
analogous
#245C7B #24317B #42247B
triadic
#24317B #7B2431 #317B24
tetradic
#24317B #7B245C #7B6E24 #247B42
square
#24317B #7B245C #7B6E24 #247B42
split-complementary
#24317B #7B4224 #5C7B24
monochromatic
#080B1C #161E4C #24317B #3244AA #4E61CB

Accessibility & contrast

On white

11.66
#24317B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#24317B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24317B
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24317B#FFFFFF#000000##FFFFFF
##24317B1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #24317b;
/* rgb */ color: rgb(36, 49, 123);
/* oklch */ color: oklch(35.0% 0.126 270.9);
Tailwind
colors: {
  custom: {
    50: '#6b68a2',
    500: '#24317b',
    950: '#000000',
  },
}
SCSS
$custom: #24317b;
$custom-light: #6b68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#24317b",
  "rgb": {
    "r": 36,
    "g": 49,
    "b": 123
  },
  "hsl": {
    "h": 231.034,
    "s": 54.717,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35023,
    "c": 0.12616,
    "h": 270.9
  },
  "luminance": 0.04002
}

Semantic roles & 50–950 ramp

primary
#24317B
secondary
#AD9F4D
accent
#C84ADE
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #24317B

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

Preview Lab → · Contrast checker → · Palette generator →

#24317B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva