#24315D#24315D

#24315D is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.6% C 0.080 H 269.2°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#24315D
RGBrgb(36, 49, 93)
HSLhsl(226, 44%, 25%)
HSVhsv(226, 61%, 36%)
CMYKcmyk(61.3%, 47.3%, 0%, 63.5%)
CIE-LABlab(21.44, 9.61, -28.04)
CIE-LCHlch(21.44, 29.64, 288.93°)
OKLaboklab(32.62% -0.0011 -0.0798)
OKLCHoklch(32.62% 0.08 269.2)
XYZxyz(3.8010, 3.3617, 10.8024)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24315D #5D5024
analogous
#244D5D #24315D #33245D
triadic
#24315D #5D2431 #315D24
tetradic
#24315D #5D244D #5D5024 #245D33
square
#24315D #5D244D #5D5024 #245D33
split-complementary
#24315D #5D3324 #4D5D24
monochromatic
#090C16 #131A31 #24315D #354889 #465FB5

Accessibility & contrast

On white

12.56
#24315D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#24315D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24315D
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24315D#FFFFFF#000000##FFFFFF
##24315D1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D365F
Deuteranopia (green-blind)
#16315C
Tritanopia (blue-blind)
#013B42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #24315d;
/* rgb */ color: rgb(36, 49, 93);
/* oklch */ color: oklch(32.6% 0.080 269.2);
Tailwind
colors: {
  custom: {
    50: '#64688b',
    500: '#24315d',
    950: '#000000',
  },
}
SCSS
$custom: #24315d;
$custom-light: #64688b;
$custom-dark: #000000;
JSON
{
  "hex": "#24315d",
  "rgb": {
    "r": 36,
    "g": 49,
    "b": 93
  },
  "hsl": {
    "h": 226.316,
    "s": 44.186,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3262,
    "c": 0.07983,
    "h": 269.2
  },
  "luminance": 0.03362
}

Semantic roles & 50–950 ramp

primary
#24315D
secondary
#91814C
accent
#B754D4
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #24315D

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

Preview Lab → · Contrast checker → · Palette generator →

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