#181952#181952

#181952 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.5% C 0.101 H 275.7°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#181952
RGBrgb(24, 25, 82)
HSLhsl(239, 55%, 21%)
HSVhsv(239, 71%, 32%)
CMYKcmyk(70.7%, 69.5%, 0%, 67.8%)
CIE-LABlab(12.60, 20.23, -34.99)
CIE-LCHlch(12.60, 40.41, 300.04°)
OKLaboklab(25.48% 0.0101 -0.1009)
OKLCHoklch(25.48% 0.101 275.7)
XYZxyz(2.2468, 1.4985, 8.1518)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181952 #525118
analogous
#183652 #181952 #341852
triadic
#181952 #521819 #195218
tetradic
#181952 #521836 #525118 #185234
square
#181952 #521836 #525118 #185234
split-complementary
#181952 #523418 #365218
monochromatic
#070718 #0A0B23 #181952 #262781 #3436B1

Accessibility & contrast

On white

16.16
#181952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#181952 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181952
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181952#FFFFFF#000000##FFFFFF
##1819521.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181952;
/* rgb */ color: rgb(24, 25, 82);
/* oklch */ color: oklch(25.5% 0.101 275.7);
Tailwind
colors: {
  custom: {
    50: '#5d5583',
    500: '#181952',
    950: '#000000',
  },
}
SCSS
$custom: #181952;
$custom-light: #5d5583;
$custom-dark: #000000;
JSON
{
  "hex": "#181952",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 82
  },
  "hsl": {
    "h": 238.966,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25481,
    "c": 0.10136,
    "h": 275.7
  },
  "luminance": 0.01499
}

Semantic roles & 50–950 ramp

primary
#181952
secondary
#89873D
accent
#DC4ADE
background
#F5F5F8
surface
#E9E8EF
border
#C5C4CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181952

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

Preview Lab → · Contrast checker → · Palette generator →

#181952 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva