#24317C#24317C

#24317C is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.128 H 270.8°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#24317C
RGBrgb(36, 49, 124)
HSLhsl(231, 55%, 31%)
HSVhsv(231, 71%, 49%)
CMYKcmyk(71%, 60.5%, 0%, 51.4%)
CIE-LABlab(23.76, 21.58, -44.29)
CIE-LCHlch(23.76, 49.27, 295.98°)
OKLaboklab(35.11% 0.0019 -0.1276)
OKLCHoklch(35.11% 0.128 270.8)
XYZxyz(5.4627, 4.0264, 19.5542)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24317C #7C6F24
analogous
#245D7C #24317C #43247C
triadic
#24317C #7C2431 #317C24
tetradic
#24317C #7C245D #7C6F24 #247C43
square
#24317C #7C245D #7C6F24 #247C43
split-complementary
#24317C #7C4324 #5D7C24
monochromatic
#080C1D #161E4D #24317C #3244AB #4F61CC

Accessibility & contrast

On white

11.63
#24317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#24317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24317C
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24317C#FFFFFF#000000##FFFFFF
##24317C1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #24317c;
/* rgb */ color: rgb(36, 49, 124);
/* oklch */ color: oklch(35.1% 0.128 270.8);
Tailwind
colors: {
  custom: {
    50: '#6b68a3',
    500: '#24317c',
    950: '#000000',
  },
}
SCSS
$custom: #24317c;
$custom-light: #6b68a3;
$custom-dark: #000000;
JSON
{
  "hex": "#24317c",
  "rgb": {
    "r": 36,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 231.136,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35111,
    "c": 0.12762,
    "h": 270.8
  },
  "luminance": 0.04027
}

Semantic roles & 50–950 ramp

primary
#24317C
secondary
#AEA04D
accent
#C849DE
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #24317C

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

Preview Lab → · Contrast checker → · Palette generator →

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