#24316B#24316B

#24316B is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.7% C 0.102 H 270.5°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#24316B
RGBrgb(36, 49, 107)
HSLhsl(229, 50%, 28%)
HSVhsv(229, 66%, 42%)
CMYKcmyk(66.4%, 54.2%, 0%, 58%)
CIE-LABlab(22.42, 15.00, -35.59)
CIE-LCHlch(22.42, 38.63, 292.85°)
OKLaboklab(33.68% 0.001 -0.102)
OKLCHoklch(33.68% 0.102 270.5)
XYZxyz(4.4788, 3.6328, 14.3722)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24316B #6B5E24
analogous
#24546B #24316B #3A246B
triadic
#24316B #6B2431 #316B24
tetradic
#24316B #6B2454 #6B5E24 #246B3A
square
#24316B #6B2454 #6B5E24 #246B3A
split-complementary
#24316B #6B3A24 #546B24
monochromatic
#080A17 #151C3D #24316B #334699 #485EC1

Accessibility & contrast

On white

12.16
#24316B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#24316B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24316B
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24316B#FFFFFF#000000##FFFFFF
##24316B1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F396D
Deuteranopia (green-blind)
#00336A
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #24316b;
/* rgb */ color: rgb(36, 49, 107);
/* oklch */ color: oklch(33.7% 0.102 270.5);
Tailwind
colors: {
  custom: {
    50: '#676896',
    500: '#24316b',
    950: '#000000',
  },
}
SCSS
$custom: #24316b;
$custom-light: #676896;
$custom-dark: #000000;
JSON
{
  "hex": "#24316b",
  "rgb": {
    "r": 36,
    "g": 49,
    "b": 107
  },
  "hsl": {
    "h": 229.014,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33682,
    "c": 0.10203,
    "h": 270.5
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#24316B
secondary
#9E8F4D
accent
#C04FD9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #24316B

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

Preview Lab → · Contrast checker → · Palette generator →

#24316B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva