#181958#181958

#181958 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.1% C 0.110 H 274.9°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#181958
RGBrgb(24, 25, 88)
HSLhsl(239, 57%, 22%)
HSVhsv(239, 73%, 35%)
CMYKcmyk(72.7%, 71.6%, 0%, 65.5%)
CIE-LABlab(13.19, 22.57, -38.08)
CIE-LCHlch(13.19, 44.27, 300.66°)
OKLaboklab(26.1% 0.0095 -0.1099)
OKLCHoklch(26.1% 0.11 274.9)
XYZxyz(2.4852, 1.5938, 9.4073)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181958 #585718
analogous
#183958 #181958 #371858
triadic
#181958 #581819 #195818
tetradic
#181958 #581839 #585718 #185837
square
#181958 #581839 #585718 #185837
split-complementary
#181958 #583718 #395818
monochromatic
#070718 #0B0B28 #181958 #252788 #3234B8

Accessibility & contrast

On white

15.92
#181958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181958
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181958#FFFFFF#000000##FFFFFF
##1819581.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181958;
/* rgb */ color: rgb(24, 25, 88);
/* oklch */ color: oklch(26.1% 0.110 274.9);
Tailwind
colors: {
  custom: {
    50: '#5f5688',
    500: '#181958',
    950: '#000000',
  },
}
SCSS
$custom: #181958;
$custom-light: #5f5688;
$custom-dark: #000000;
JSON
{
  "hex": "#181958",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 239.063,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26098,
    "c": 0.11035,
    "h": 274.9
  },
  "luminance": 0.01594
}

Semantic roles & 50–950 ramp

primary
#181958
secondary
#8F8D3D
accent
#DE47E0
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #181958

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

Preview Lab → · Contrast checker → · Palette generator →

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