#181D81#181D81

#181D81 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.162 H 270.3°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#181D81
RGBrgb(24, 29, 129)
HSLhsl(237, 69%, 30%)
HSVhsv(237, 81%, 51%)
CMYKcmyk(81.4%, 77.5%, 0%, 49.4%)
CIE-LABlab(18.62, 35.32, -55.92)
CIE-LCHlch(18.62, 66.14, 302.27°)
OKLaboklab(31.33% 0.0009 -0.162)
OKLCHoklch(31.33% 0.162 270.3)
XYZxyz(4.7772, 2.6574, 21.0258)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D81 #817C18
analogous
#185181 #181D81 #481881
triadic
#181D81 #81181D #1D8118
tetradic
#181D81 #811851 #817C18 #188148
square
#181D81 #811851 #817C18 #188148
split-complementary
#181D81 #814818 #518118
monochromatic
#05061A #0E114D #181D81 #2229B5 #3941DA

Accessibility & contrast

On white

13.71
#181D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#181D81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D81
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D81#FFFFFF#000000##FFFFFF
##181D811.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181d81;
/* rgb */ color: rgb(24, 29, 129);
/* oklch */ color: oklch(31.3% 0.162 270.3);
Tailwind
colors: {
  custom: {
    50: '#6a5aa7',
    500: '#181d81',
    950: '#000000',
  },
}
SCSS
$custom: #181d81;
$custom-light: #6a5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#181d81",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 129
  },
  "hsl": {
    "h": 237.143,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.31331,
    "c": 0.16196,
    "h": 270.3
  },
  "luminance": 0.02658
}

Semantic roles & 50–950 ramp

primary
#181D81
secondary
#B5B040
accent
#E33CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #181D81

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

Preview Lab → · Contrast checker → · Palette generator →

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