#24168F#24168F

#24168F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.8% C 0.182 H 274.8°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#24168F
RGBrgb(36, 22, 143)
HSLhsl(247, 73%, 32%)
HSVhsv(247, 85%, 56%)
CMYKcmyk(74.8%, 84.6%, 0%, 43.9%)
CIE-LABlab(19.77, 44.59, -62.78)
CIE-LCHlch(19.77, 77.01, 305.39°)
OKLaboklab(32.83% 0.0152 -0.1815)
OKLCHoklch(32.83% 0.182 274.8)
XYZxyz(5.9708, 2.9315, 26.2324)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24168F #818F16
analogous
#16458F #24168F #60168F
triadic
#24168F #8F2416 #168F24
tetradic
#24168F #8F1645 #818F16 #168F60
square
#24168F #8F1645 #818F16 #168F60
split-complementary
#24168F #8F6016 #458F16
monochromatic
#090625 #170E5A #24168F #311EC4 #513EE1

Accessibility & contrast

On white

13.24
#24168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#24168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24168F
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24168F#FFFFFF#000000##FFFFFF
##24168F1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #24168f;
/* rgb */ color: rgb(36, 22, 143);
/* oklch */ color: oklch(32.8% 0.182 274.8);
Tailwind
colors: {
  custom: {
    50: '#7258b1',
    500: '#24168f',
    950: '#000000',
  },
}
SCSS
$custom: #24168f;
$custom-light: #7258b1;
$custom-dark: #000000;
JSON
{
  "hex": "#24168f",
  "rgb": {
    "r": 36,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 246.942,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32826,
    "c": 0.18215,
    "h": 274.8
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#24168F
secondary
#B2C13F
accent
#F038DB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #24168F

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

Preview Lab → · Contrast checker → · Palette generator →

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