#181E72#181E72

#181E72 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.141 H 271.1°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#181E72
RGBrgb(24, 30, 114)
HSLhsl(236, 65%, 27%)
HSVhsv(236, 79%, 45%)
CMYKcmyk(78.9%, 73.7%, 0%, 55.3%)
CIE-LABlab(17.17, 29.16, -48.71)
CIE-LCHlch(17.17, 56.78, 300.91°)
OKLaboklab(29.8% 0.0028 -0.141)
OKLCHoklch(29.8% 0.141 271.1)
XYZxyz(3.8772, 2.3372, 16.1631)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E72 #726C18
analogous
#184B72 #181E72 #3F1872
triadic
#181E72 #72181E #1E7218
tetradic
#181E72 #72184B #726C18 #18723F
square
#181E72 #72184B #726C18 #18723F
split-complementary
#181E72 #723F18 #4B7218
monochromatic
#050719 #0D113F #181E72 #232BA5 #313CD4

Accessibility & contrast

On white

14.31
#181E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#181E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E72
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E72#FFFFFF#000000##FFFFFF
##181E721.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181e72;
/* rgb */ color: rgb(24, 30, 114);
/* oklch */ color: oklch(29.8% 0.141 271.1);
Tailwind
colors: {
  custom: {
    50: '#665a9b',
    500: '#181e72',
    950: '#000000',
  },
}
SCSS
$custom: #181e72;
$custom-light: #665a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#181e72",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 236,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29797,
    "c": 0.14103,
    "h": 271.1
  },
  "luminance": 0.02338
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181E72

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

Preview Lab → · Contrast checker → · Palette generator →

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