#181E81#181E81

#181E81 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.161 H 270.2°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#181E81
RGBrgb(24, 30, 129)
HSLhsl(237, 69%, 30%)
HSVhsv(237, 81%, 51%)
CMYKcmyk(81.4%, 76.7%, 0%, 49.4%)
CIE-LABlab(18.83, 34.71, -55.56)
CIE-LCHlch(18.83, 65.51, 301.99°)
OKLaboklab(31.48% 0.0005 -0.1609)
OKLCHoklch(31.48% 0.161 270.2)
XYZxyz(4.8021, 2.7072, 21.0341)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E81 #817B18
analogous
#185381 #181E81 #461881
triadic
#181E81 #81181E #1E8118
tetradic
#181E81 #811853 #817B18 #188146
square
#181E81 #811853 #817B18 #188146
split-complementary
#181E81 #814618 #538118
monochromatic
#05061A #0E124D #181E81 #222AB5 #3942DA

Accessibility & contrast

On white

13.62
#181E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#181E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E81
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E81#FFFFFF#000000##FFFFFF
##181E811.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181e81;
/* rgb */ color: rgb(24, 30, 129);
/* oklch */ color: oklch(31.5% 0.161 270.2);
Tailwind
colors: {
  custom: {
    50: '#6a5ba7',
    500: '#181e81',
    950: '#000000',
  },
}
SCSS
$custom: #181e81;
$custom-light: #6a5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#181e81",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 236.571,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.31484,
    "c": 0.16093,
    "h": 270.2
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#181E81
secondary
#B5AE40
accent
#E13CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #181E81

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

Preview Lab → · Contrast checker → · Palette generator →

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