#181F86#181F86

#181F86 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.166 H 269.7°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#181F86
RGBrgb(24, 31, 134)
HSLhsl(236, 70%, 31%)
HSVhsv(236, 82%, 53%)
CMYKcmyk(82.1%, 76.9%, 0%, 47.5%)
CIE-LABlab(19.62, 35.90, -57.42)
CIE-LCHlch(19.62, 67.72, 302.02°)
OKLaboklab(32.21% -0.0007 -0.1663)
OKLCHoklch(32.21% 0.166 269.7)
XYZxyz(5.1683, 2.8948, 22.8360)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F86 #867F18
analogous
#185686 #181F86 #481886
triadic
#181F86 #86181F #1F8618
tetradic
#181F86 #861856 #867F18 #188648
square
#181F86 #861856 #867F18 #188648
split-complementary
#181F86 #864818 #568618
monochromatic
#05071E #0F1352 #181F86 #212BBA #3C46DC

Accessibility & contrast

On white

13.30
#181F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#181F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F86
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F86#FFFFFF#000000##FFFFFF
##181F861.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #181f86;
/* rgb */ color: rgb(24, 31, 134);
/* oklch */ color: oklch(32.2% 0.166 269.7);
Tailwind
colors: {
  custom: {
    50: '#6b5caa',
    500: '#181f86',
    950: '#000000',
  },
}
SCSS
$custom: #181f86;
$custom-light: #6b5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#181f86",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 236.182,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32212,
    "c": 0.16633,
    "h": 269.7
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#181F86
secondary
#BAB240
accent
#E13BEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #181F86

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

Preview Lab → · Contrast checker → · Palette generator →

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