#24316F#24316F

#24316F is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.0% C 0.108 H 270.7°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#24316F
RGBrgb(36, 49, 111)
HSLhsl(230, 51%, 29%)
HSVhsv(230, 68%, 44%)
CMYKcmyk(67.6%, 55.9%, 0%, 56.5%)
CIE-LABlab(22.72, 16.55, -37.68)
CIE-LCHlch(22.72, 41.16, 293.71°)
OKLaboklab(34.01% 0.0013 -0.1082)
OKLCHoklch(34.01% 0.108 270.7)
XYZxyz(4.6941, 3.7190, 15.5063)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24316F #6F6224
analogous
#24576F #24316F #3D246F
triadic
#24316F #6F2431 #316F24
tetradic
#24316F #6F2457 #6F6224 #246F3D
square
#24316F #6F2457 #6F6224 #246F3D
split-complementary
#24316F #6F3D24 #576F24
monochromatic
#070A17 #151D41 #24316F #33459D #495FC4

Accessibility & contrast

On white

12.04
#24316F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#24316F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24316F
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24316F#FFFFFF#000000##FFFFFF
##24316F1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083A71
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #24316f;
/* rgb */ color: rgb(36, 49, 111);
/* oklch */ color: oklch(34.0% 0.108 270.7);
Tailwind
colors: {
  custom: {
    50: '#686899',
    500: '#24316f',
    950: '#000000',
  },
}
SCSS
$custom: #24316f;
$custom-light: #686899;
$custom-dark: #000000;
JSON
{
  "hex": "#24316f",
  "rgb": {
    "r": 36,
    "g": 49,
    "b": 111
  },
  "hsl": {
    "h": 229.6,
    "s": 51.02,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34005,
    "c": 0.1082,
    "h": 270.7
  },
  "luminance": 0.03719
}

Semantic roles & 50–950 ramp

primary
#24316F
secondary
#A2934D
accent
#C24DDA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #24316F

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

Preview Lab → · Contrast checker → · Palette generator →

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