#181D8E#181D8E

#181D8E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.178 H 269.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#181D8E
RGBrgb(24, 29, 142)
HSLhsl(237, 71%, 33%)
HSVhsv(237, 83%, 56%)
CMYKcmyk(83.1%, 79.6%, 0%, 44.3%)
CIE-LABlab(20.14, 39.88, -61.55)
CIE-LCHlch(20.14, 73.34, 302.94°)
OKLaboklab(32.86% -0.0015 -0.1783)
OKLCHoklch(32.86% 0.178 269.5)
XYZxyz(5.6969, 3.0252, 25.8696)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D8E #8E8918
analogous
#18588E #181D8E #4E188E
triadic
#181D8E #8E181D #1D8E18
tetradic
#181D8E #8E1858 #8E8918 #188E4E
square
#181D8E #8E1858 #8E8918 #188E4E
split-complementary
#181D8E #8E4E18 #588E18
monochromatic
#060825 #0F125A #181D8E #2128C2 #4148DF

Accessibility & contrast

On white

13.08
#181D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#181D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D8E
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D8E#FFFFFF#000000##FFFFFF
##181D8E1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #181d8e;
/* rgb */ color: rgb(24, 29, 142);
/* oklch */ color: oklch(32.9% 0.178 269.5);
Tailwind
colors: {
  custom: {
    50: '#6d5bb0',
    500: '#181d8e',
    950: '#000000',
  },
}
SCSS
$custom: #181d8e;
$custom-light: #6d5bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#181d8e",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 237.458,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.32859,
    "c": 0.17831,
    "h": 269.5
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#181D8E
secondary
#C0BA42
accent
#E63AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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