#181886#181886

#181886 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.173 H 270.5°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#181886
RGBrgb(24, 24, 134)
HSLhsl(240, 70%, 31%)
HSVhsv(240, 82%, 53%)
CMYKcmyk(82.1%, 82.1%, 0%, 47.5%)
CIE-LABlab(18.22, 39.89, -59.73)
CIE-LCHlch(18.22, 71.82, 303.74°)
OKLaboklab(31.23% 0.0015 -0.1729)
OKLCHoklch(31.23% 0.173 270.5)
XYZxyz(5.0049, 2.5681, 22.7815)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181886 #868618
analogous
#184F86 #181886 #4F1886
triadic
#181886 #861818 #188618
tetradic
#181886 #86184F #868618 #18864F
square
#181886 #86184F #868618 #18864F
split-complementary
#181886 #864F18 #4F8618
monochromatic
#05051E #0F0F52 #181886 #2121BA #3C3CDC

Accessibility & contrast

On white

13.87
#181886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181886
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181886#FFFFFF#000000##FFFFFF
##1818861.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181886;
/* rgb */ color: rgb(24, 24, 134);
/* oklch */ color: oklch(31.2% 0.173 270.5);
Tailwind
colors: {
  custom: {
    50: '#6c58ab',
    500: '#181886',
    950: '#000000',
  },
}
SCSS
$custom: #181886;
$custom-light: #6c58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#181886",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 240,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3123,
    "c": 0.17294,
    "h": 270.5
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#181886
secondary
#BABA40
accent
#EC3BEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181886

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

Preview Lab → · Contrast checker → · Palette generator →

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