#181E71#181E71

#181E71 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.7% C 0.140 H 271.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#181E71
RGBrgb(24, 30, 113)
HSLhsl(236, 65%, 27%)
HSVhsv(236, 79%, 44%)
CMYKcmyk(78.8%, 73.5%, 0%, 55.7%)
CIE-LABlab(17.06, 28.78, -48.24)
CIE-LCHlch(17.06, 56.18, 300.82°)
OKLaboklab(29.69% 0.0029 -0.1396)
OKLCHoklch(29.69% 0.14 271.2)
XYZxyz(3.8206, 2.3146, 15.8650)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E71 #716B18
analogous
#184B71 #181E71 #3F1871
triadic
#181E71 #71181E #1E7118
tetradic
#181E71 #71184B #716B18 #18713F
square
#181E71 #71184B #716B18 #18713F
split-complementary
#181E71 #713F18 #4B7118
monochromatic
#050719 #0D113F #181E71 #232BA3 #303BD3

Accessibility & contrast

On white

14.35
#181E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#181E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E71
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E71#FFFFFF#000000##FFFFFF
##181E711.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181e71;
/* rgb */ color: rgb(24, 30, 113);
/* oklch */ color: oklch(29.7% 0.140 271.2);
Tailwind
colors: {
  custom: {
    50: '#655a9b',
    500: '#181e71',
    950: '#000000',
  },
}
SCSS
$custom: #181e71;
$custom-light: #655a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#181e71",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 113
  },
  "hsl": {
    "h": 235.955,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29687,
    "c": 0.13966,
    "h": 271.2
  },
  "luminance": 0.02315
}

Semantic roles & 50–950 ramp

primary
#181E71
secondary
#A69F3E
accent
#DD40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #181E71

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

Preview Lab → · Contrast checker → · Palette generator →

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