#24186F#24186F

#24186F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.141 H 279.5°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#24186F
RGBrgb(36, 24, 111)
HSLhsl(248, 64%, 26%)
HSVhsv(248, 78%, 44%)
CMYKcmyk(67.6%, 78.4%, 0%, 56.5%)
CIE-LABlab(16.38, 33.20, -48.03)
CIE-LCHlch(16.38, 58.39, 304.66°)
OKLaboklab(29.37% 0.0233 -0.1386)
OKLCHoklch(29.37% 0.141 279.5)
XYZxyz(3.9225, 2.1757, 15.2491)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24186F #636F18
analogous
#18386F #24186F #50186F
triadic
#24186F #6F2418 #186F24
tetradic
#24186F #6F1838 #636F18 #186F50
square
#24186F #6F1838 #636F18 #186F50
split-complementary
#24186F #6F5018 #386F18
monochromatic
#080519 #140D3D #24186F #3423A1 #462FD2

Accessibility & contrast

On white

14.63
#24186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#24186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24186F
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24186F#FFFFFF#000000##FFFFFF
##24186F1.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00256D
Tritanopia (blue-blind)
#003142
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #24186f;
/* rgb */ color: rgb(36, 24, 111);
/* oklch */ color: oklch(29.4% 0.141 279.5);
Tailwind
colors: {
  custom: {
    50: '#6a5799',
    500: '#24186f',
    950: '#000000',
  },
}
SCSS
$custom: #24186f;
$custom-light: #6a5799;
$custom-dark: #000000;
JSON
{
  "hex": "#24186f",
  "rgb": {
    "r": 36,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 248.276,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29371,
    "c": 0.14058,
    "h": 279.5
  },
  "luminance": 0.02176
}

Semantic roles & 50–950 ramp

primary
#24186F
secondary
#96A53E
accent
#E740D0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #24186F

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

Preview Lab → · Contrast checker → · Palette generator →

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