#181959#181959

#181959 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.2% C 0.112 H 274.8°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#181959
RGBrgb(24, 25, 89)
HSLhsl(239, 58%, 22%)
HSVhsv(239, 73%, 35%)
CMYKcmyk(73%, 71.9%, 0%, 65.1%)
CIE-LABlab(13.29, 22.96, -38.59)
CIE-LCHlch(13.29, 44.91, 300.75°)
OKLaboklab(26.2% 0.0094 -0.1114)
OKLCHoklch(26.2% 0.112 274.8)
XYZxyz(2.5269, 1.6105, 9.6269)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181959 #595818
analogous
#183A59 #181959 #381859
triadic
#181959 #591819 #195918
tetradic
#181959 #59183A #595818 #185938
square
#181959 #59183A #595818 #185938
split-complementary
#181959 #593818 #3A5918
monochromatic
#060718 #0B0B29 #181959 #252789 #3234B9

Accessibility & contrast

On white

15.88
#181959 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#181959 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181959
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181959#FFFFFF#000000##FFFFFF
##1819591.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#001F58
Tritanopia (blue-blind)
#002A36
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181959;
/* rgb */ color: rgb(24, 25, 89);
/* oklch */ color: oklch(26.2% 0.112 274.8);
Tailwind
colors: {
  custom: {
    50: '#5f5689',
    500: '#181959',
    950: '#000000',
  },
}
SCSS
$custom: #181959;
$custom-light: #5f5689;
$custom-dark: #000000;
JSON
{
  "hex": "#181959",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 89
  },
  "hsl": {
    "h": 239.077,
    "s": 57.522,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26203,
    "c": 0.11182,
    "h": 274.8
  },
  "luminance": 0.01611
}

Semantic roles & 50–950 ramp

primary
#181959
secondary
#908E3D
accent
#DE47E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181959

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

Preview Lab → · Contrast checker → · Palette generator →

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