#181D86#181D86

#181D86 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.168 H 270.0°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#181D86
RGBrgb(24, 29, 134)
HSLhsl(237, 70%, 31%)
HSVhsv(237, 82%, 53%)
CMYKcmyk(82.1%, 78.4%, 0%, 47.5%)
CIE-LABlab(19.20, 37.09, -58.11)
CIE-LCHlch(19.20, 68.94, 302.55°)
OKLaboklab(31.91% 0 -0.1683)
OKLCHoklch(31.91% 0.168 270)
XYZxyz(5.1177, 2.7936, 22.8191)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D86 #868118
analogous
#185486 #181D86 #4A1886
triadic
#181D86 #86181D #1D8618
tetradic
#181D86 #861854 #868118 #18864A
square
#181D86 #861854 #868118 #18864A
split-complementary
#181D86 #864A18 #548618
monochromatic
#05071E #0F1252 #181D86 #2128BA #3C44DC

Accessibility & contrast

On white

13.47
#181D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#181D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D86
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D86#FFFFFF#000000##FFFFFF
##181D861.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002984
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #181d86;
/* rgb */ color: rgb(24, 29, 134);
/* oklch */ color: oklch(31.9% 0.168 270.0);
Tailwind
colors: {
  custom: {
    50: '#6b5aaa',
    500: '#181d86',
    950: '#000000',
  },
}
SCSS
$custom: #181d86;
$custom-light: #6b5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#181d86",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 237.273,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31914,
    "c": 0.16833,
    "h": 270
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#181D86
secondary
#BAB440
accent
#E43BEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #181D86

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

Preview Lab → · Contrast checker → · Palette generator →

#181D86 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva