#181786#181786

#181786 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.174 H 270.6°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#181786
RGBrgb(24, 23, 134)
HSLhsl(241, 71%, 31%)
HSVhsv(241, 83%, 53%)
CMYKcmyk(82.1%, 82.8%, 0%, 47.5%)
CIE-LABlab(18.04, 40.42, -60.03)
CIE-LCHlch(18.04, 72.37, 303.95°)
OKLaboklab(31.1% 0.0018 -0.1738)
OKLCHoklch(31.1% 0.174 270.6)
XYZxyz(4.9847, 2.5276, 22.7748)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181786 #858617
analogous
#174D86 #181786 #501786
triadic
#181786 #861817 #178618
tetradic
#181786 #86174D #858617 #178650
square
#181786 #86174D #858617 #178650
split-complementary
#181786 #865017 #4D8617
monochromatic
#05051E #0F0E52 #181786 #2120BA #3C3ADD

Accessibility & contrast

On white

13.95
#181786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#181786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181786
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181786#FFFFFF#000000##FFFFFF
##1817861.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002684
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181786;
/* rgb */ color: rgb(24, 23, 134);
/* oklch */ color: oklch(31.1% 0.174 270.6);
Tailwind
colors: {
  custom: {
    50: '#6c57ab',
    500: '#181786',
    950: '#000000',
  },
}
SCSS
$custom: #181786;
$custom-light: #6c57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#181786",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 240.541,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31104,
    "c": 0.17379,
    "h": 270.6
  },
  "luminance": 0.02528
}

Semantic roles & 50–950 ramp

primary
#181786
secondary
#B9BA3F
accent
#ED3AEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181786

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

Preview Lab → · Contrast checker → · Palette generator →

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