#181956#181956

#181956 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.107 H 275.2°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#181956
RGBrgb(24, 25, 86)
HSLhsl(239, 56%, 22%)
HSVhsv(239, 72%, 34%)
CMYKcmyk(72.1%, 70.9%, 0%, 66.3%)
CIE-LABlab(12.99, 21.80, -37.06)
CIE-LCHlch(12.99, 43.00, 300.46°)
OKLaboklab(25.89% 0.0097 -0.1069)
OKLCHoklch(25.89% 0.107 275.2)
XYZxyz(2.4035, 1.5611, 8.9770)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181956 #565518
analogous
#183856 #181956 #361856
triadic
#181956 #561819 #195618
tetradic
#181956 #561838 #565518 #185636
square
#181956 #561838 #565518 #185636
split-complementary
#181956 #563618 #385618
monochromatic
#070718 #0B0B26 #181956 #252786 #3335B6

Accessibility & contrast

On white

16.00
#181956 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#181956 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181956
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181956#FFFFFF#000000##FFFFFF
##1819561.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#002935
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #181956;
/* rgb */ color: rgb(24, 25, 86);
/* oklch */ color: oklch(25.9% 0.107 275.2);
Tailwind
colors: {
  custom: {
    50: '#5e5686',
    500: '#181956',
    950: '#000000',
  },
}
SCSS
$custom: #181956;
$custom-light: #5e5686;
$custom-dark: #000000;
JSON
{
  "hex": "#181956",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 86
  },
  "hsl": {
    "h": 239.032,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2589,
    "c": 0.10739,
    "h": 275.2
  },
  "luminance": 0.01561
}

Semantic roles & 50–950 ramp

primary
#181956
secondary
#8D8B3D
accent
#DD48E0
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181956

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

Preview Lab → · Contrast checker → · Palette generator →

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