#181687#181687

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

Color values

HEX#181687
RGBrgb(24, 22, 135)
HSLhsl(241, 72%, 31%)
HSVhsv(241, 84%, 53%)
CMYKcmyk(82.2%, 83.7%, 0%, 47.1%)
CIE-LABlab(17.99, 41.26, -60.74)
CIE-LCHlch(17.99, 73.43, 304.19°)
OKLaboklab(31.11% 0.0018 -0.1758)
OKLCHoklch(31.11% 0.176 270.6)
XYZxyz(5.0353, 2.5167, 23.1374)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181687 #858716
analogous
#164C87 #181687 #501687
triadic
#181687 #871816 #168718
tetradic
#181687 #87164C #858716 #168750
square
#181687 #87164C #858716 #168750
split-complementary
#181687 #875016 #4C8716
monochromatic
#05051E #0F0D52 #181687 #211FBC #3C39DF

Accessibility & contrast

On white

13.97
#181687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#181687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181687
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181687#FFFFFF#000000##FFFFFF
##1816871.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002685
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181687;
/* rgb */ color: rgb(24, 22, 135);
/* oklch */ color: oklch(31.1% 0.176 270.6);
Tailwind
colors: {
  custom: {
    50: '#6c57ab',
    500: '#181687',
    950: '#000000',
  },
}
SCSS
$custom: #181687;
$custom-light: #6c57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#181687",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 241.062,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31106,
    "c": 0.17583,
    "h": 270.6
  },
  "luminance": 0.02517
}

Semantic roles & 50–950 ramp

primary
#181687
secondary
#B9BB3E
accent
#EF39EB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181687

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

Preview Lab → · Contrast checker → · Palette generator →

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