#181986#181986

#181986 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.172 H 270.4°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#181986
RGBrgb(24, 25, 134)
HSLhsl(239, 70%, 31%)
HSVhsv(239, 82%, 53%)
CMYKcmyk(82.1%, 81.3%, 0%, 47.5%)
CIE-LABlab(18.41, 39.35, -59.42)
CIE-LCHlch(18.41, 71.27, 303.52°)
OKLaboklab(31.36% 0.0012 -0.1721)
OKLCHoklch(31.36% 0.172 270.4)
XYZxyz(5.0259, 2.6101, 22.7885)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181986 #868518
analogous
#185086 #181986 #4E1886
triadic
#181986 #861819 #198618
tetradic
#181986 #861850 #868518 #18864E
square
#181986 #861850 #868518 #18864E
split-complementary
#181986 #864E18 #508618
monochromatic
#05061E #0F0F52 #181986 #2123BA #3C3EDC

Accessibility & contrast

On white

13.80
#181986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#181986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181986
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181986#FFFFFF#000000##FFFFFF
##1819861.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181986;
/* rgb */ color: rgb(24, 25, 134);
/* oklch */ color: oklch(31.4% 0.172 270.4);
Tailwind
colors: {
  custom: {
    50: '#6c58aa',
    500: '#181986',
    950: '#000000',
  },
}
SCSS
$custom: #181986;
$custom-light: #6c58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#181986",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 239.455,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3136,
    "c": 0.17206,
    "h": 270.4
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#181986
secondary
#BAB940
accent
#EB3BEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181986

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

Preview Lab → · Contrast checker → · Palette generator →

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