#24315E#24315E

#24315E is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.7% C 0.081 H 269.4°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#24315E
RGBrgb(36, 49, 94)
HSLhsl(227, 45%, 25%)
HSVhsv(227, 62%, 37%)
CMYKcmyk(61.7%, 47.9%, 0%, 63.1%)
CIE-LABlab(21.50, 10.00, -28.59)
CIE-LCHlch(21.50, 30.29, 289.27°)
OKLaboklab(32.69% -0.0009 -0.0814)
OKLCHoklch(32.69% 0.081 269.4)
XYZxyz(3.8456, 3.3795, 11.0372)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24315E #5E5124
analogous
#244E5E #24315E #34245E
triadic
#24315E #5E2431 #315E24
tetradic
#24315E #5E244E #5E5124 #245E34
square
#24315E #5E244E #5E5124 #245E34
split-complementary
#24315E #5E3424 #4E5E24
monochromatic
#080C16 #131A32 #24315E #35488A #465FB7

Accessibility & contrast

On white

12.53
#24315E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#24315E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24315E
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24315E#FFFFFF#000000##FFFFFF
##24315E1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3660
Deuteranopia (green-blind)
#15315D
Tritanopia (blue-blind)
#003B43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #24315e;
/* rgb */ color: rgb(36, 49, 94);
/* oklch */ color: oklch(32.7% 0.081 269.4);
Tailwind
colors: {
  custom: {
    50: '#64688c',
    500: '#24315e',
    950: '#000000',
  },
}
SCSS
$custom: #24315e;
$custom-light: #64688c;
$custom-dark: #000000;
JSON
{
  "hex": "#24315e",
  "rgb": {
    "r": 36,
    "g": 49,
    "b": 94
  },
  "hsl": {
    "h": 226.552,
    "s": 44.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32692,
    "c": 0.08144,
    "h": 269.4
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#24315E
secondary
#92824C
accent
#B753D4
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #24315E

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

Preview Lab → · Contrast checker → · Palette generator →

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