#181E8D#181E8D

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

Color values

HEX#181E8D
RGBrgb(24, 30, 141)
HSLhsl(237, 71%, 32%)
HSVhsv(237, 83%, 55%)
CMYKcmyk(83%, 78.7%, 0%, 44.7%)
CIE-LABlab(20.22, 38.96, -60.80)
CIE-LCHlch(20.22, 72.21, 302.65°)
OKLaboklab(32.88% -0.0016 -0.1761)
OKLCHoklch(32.88% 0.176 269.5)
XYZxyz(5.6470, 3.0452, 25.4843)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E8D #8D8718
analogous
#18598D #181E8D #4C188D
triadic
#181E8D #8D181E #1E8D18
tetradic
#181E8D #8D1859 #8D8718 #188D4C
square
#181E8D #8D1859 #8D8718 #188D4C
split-complementary
#181E8D #8D4C18 #598D18
monochromatic
#060824 #0F1359 #181E8D #2129C1 #4149DF

Accessibility & contrast

On white

13.05
#181E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181E8D
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E8D#FFFFFF#000000##FFFFFF
##181E8D1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181e8d;
/* rgb */ color: rgb(24, 30, 141);
/* oklch */ color: oklch(32.9% 0.176 269.5);
Tailwind
colors: {
  custom: {
    50: '#6d5cb0',
    500: '#181e8d',
    950: '#000000',
  },
}
SCSS
$custom: #181e8d;
$custom-light: #6d5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#181e8d",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 141
  },
  "hsl": {
    "h": 236.923,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3288,
    "c": 0.17614,
    "h": 269.5
  },
  "luminance": 0.03046
}

Semantic roles & 50–950 ramp

primary
#181E8D
secondary
#BFB942
accent
#E43AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #181E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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