#181A8E#181A8E

#181A8E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.181 H 269.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#181A8E
RGBrgb(24, 26, 142)
HSLhsl(239, 71%, 33%)
HSVhsv(239, 83%, 56%)
CMYKcmyk(83.1%, 81.7%, 0%, 44.3%)
CIE-LABlab(19.58, 41.52, -62.49)
CIE-LCHlch(19.58, 75.03, 303.60°)
OKLaboklab(32.46% -0.0007 -0.181)
OKLCHoklch(32.46% 0.181 269.8)
XYZxyz(5.6269, 2.8853, 25.8463)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A8E #8E8C18
analogous
#18558E #181A8E #51188E
triadic
#181A8E #8E181A #1A8E18
tetradic
#181A8E #8E1855 #8E8C18 #188E51
square
#181A8E #8E1855 #8E8C18 #188E51
split-complementary
#181A8E #8E5118 #558E18
monochromatic
#060725 #0F105A #181A8E #2124C2 #4144DF

Accessibility & contrast

On white

13.31
#181A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181A8E
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A8E#FFFFFF#000000##FFFFFF
##181A8E1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #181a8e;
/* rgb */ color: rgb(24, 26, 142);
/* oklch */ color: oklch(32.5% 0.181 269.8);
Tailwind
colors: {
  custom: {
    50: '#6e59b0',
    500: '#181a8e',
    950: '#000000',
  },
}
SCSS
$custom: #181a8e;
$custom-light: #6e59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#181a8e",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 238.983,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32462,
    "c": 0.18098,
    "h": 269.8
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#181A8E
secondary
#C0BE42
accent
#EB3AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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