#181C86#181C86

#181C86 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.169 H 270.1°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#181C86
RGBrgb(24, 28, 134)
HSLhsl(238, 70%, 31%)
HSVhsv(238, 82%, 53%)
CMYKcmyk(82.1%, 79.1%, 0%, 47.5%)
CIE-LABlab(18.99, 37.67, -58.45)
CIE-LCHlch(18.99, 69.54, 302.80°)
OKLaboklab(31.77% 0.0003 -0.1693)
OKLCHoklch(31.77% 0.169 270.1)
XYZxyz(5.0936, 2.7453, 22.8111)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C86 #868218
analogous
#185386 #181C86 #4B1886
triadic
#181C86 #86181C #1C8618
tetradic
#181C86 #861853 #868218 #18864B
square
#181C86 #861853 #868218 #18864B
split-complementary
#181C86 #864B18 #538618
monochromatic
#05061E #0F1152 #181C86 #2127BA #3C42DC

Accessibility & contrast

On white

13.56
#181C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#181C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C86
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C86#FFFFFF#000000##FFFFFF
##181C861.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002884
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181c86;
/* rgb */ color: rgb(24, 28, 134);
/* oklch */ color: oklch(31.8% 0.169 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b5aaa',
    500: '#181c86',
    950: '#000000',
  },
}
SCSS
$custom: #181c86;
$custom-light: #6b5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#181c86",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 237.818,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3177,
    "c": 0.16929,
    "h": 270.1
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#181C86
secondary
#BAB540
accent
#E63BEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #181C86

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

Preview Lab → · Contrast checker → · Palette generator →

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