#24315C#24315C

#24315C is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.5% C 0.078 H 269.1°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#24315C
RGBrgb(36, 49, 92)
HSLhsl(226, 44%, 25%)
HSVhsv(226, 61%, 36%)
CMYKcmyk(60.9%, 46.7%, 0%, 63.9%)
CIE-LABlab(21.37, 9.23, -27.48)
CIE-LCHlch(21.37, 28.99, 288.57°)
OKLaboklab(32.55% -0.0013 -0.0782)
OKLCHoklch(32.55% 0.078 269.1)
XYZxyz(3.7570, 3.3441, 10.5706)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24315C #5C4F24
analogous
#244D5C #24315C #33245C
triadic
#24315C #5C2431 #315C24
tetradic
#24315C #5C244D #5C4F24 #245C33
square
#24315C #5C244D #5C4F24 #245C33
split-complementary
#24315C #5C3324 #4D5C24
monochromatic
#090C16 #131A30 #24315C #354888 #4660B4

Accessibility & contrast

On white

12.58
#24315C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24315C
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24315C#FFFFFF#000000##FFFFFF
##24315C1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E365E
Deuteranopia (green-blind)
#17315B
Tritanopia (blue-blind)
#023A42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #24315c;
/* rgb */ color: rgb(36, 49, 92);
/* oklch */ color: oklch(32.5% 0.078 269.1);
Tailwind
colors: {
  custom: {
    50: '#64688a',
    500: '#24315c',
    950: '#000000',
  },
}
SCSS
$custom: #24315c;
$custom-light: #64688a;
$custom-dark: #000000;
JSON
{
  "hex": "#24315c",
  "rgb": {
    "r": 36,
    "g": 49,
    "b": 92
  },
  "hsl": {
    "h": 226.071,
    "s": 43.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.32549,
    "c": 0.07821,
    "h": 269.1
  },
  "luminance": 0.03344
}

Semantic roles & 50–950 ramp

primary
#24315C
secondary
#90804C
accent
#B654D3
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #24315C

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

Preview Lab → · Contrast checker → · Palette generator →

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