#24318F#24318F

#24318F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.155 H 270.5°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#24318F
RGBrgb(36, 49, 143)
HSLhsl(233, 60%, 35%)
HSVhsv(233, 75%, 56%)
CMYKcmyk(74.8%, 65.7%, 0%, 43.9%)
CIE-LABlab(25.43, 28.83, -53.45)
CIE-LCHlch(25.43, 60.73, 298.34°)
OKLaboklab(36.86% 0.0014 -0.1545)
OKLCHoklch(36.86% 0.155 270.5)
XYZxyz(6.7821, 4.5542, 26.5029)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24318F #8F8224
analogous
#24678F #24318F #4C248F
triadic
#24318F #8F2431 #318F24
tetradic
#24318F #8F2467 #8F8224 #248F4C
square
#24318F #8F2467 #8F8224 #248F4C
split-complementary
#24318F #8F4C24 #678F24
monochromatic
#0B0F2D #18205E #24318F #3042C0 #5868D5

Accessibility & contrast

On white

10.99
#24318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#24318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24318F
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24318F#FFFFFF#000000##FFFFFF
##24318F1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #24318f;
/* rgb */ color: rgb(36, 49, 143);
/* oklch */ color: oklch(36.9% 0.155 270.5);
Tailwind
colors: {
  custom: {
    50: '#7069b1',
    500: '#24318f',
    950: '#000000',
  },
}
SCSS
$custom: #24318f;
$custom-light: #7069b1;
$custom-dark: #000000;
JSON
{
  "hex": "#24318f",
  "rgb": {
    "r": 36,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 232.71,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3686,
    "c": 0.15451,
    "h": 270.5
  },
  "luminance": 0.04555
}

Semantic roles & 50–950 ramp

primary
#24318F
secondary
#B9AD55
accent
#D045E3
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #24318F

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

Preview Lab → · Contrast checker → · Palette generator →

#24318F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva