#181A81#181A81

#181A81 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.165 H 270.7°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#181A81
RGBrgb(24, 26, 129)
HSLhsl(239, 69%, 30%)
HSVhsv(239, 81%, 51%)
CMYKcmyk(81.4%, 79.8%, 0%, 49.4%)
CIE-LABlab(18.00, 37.08, -56.94)
CIE-LCHlch(18.00, 67.95, 303.07°)
OKLaboklab(30.89% 0.0019 -0.1649)
OKLCHoklch(30.89% 0.165 270.7)
XYZxyz(4.7072, 2.5174, 21.0024)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A81 #817F18
analogous
#184F81 #181A81 #4A1881
triadic
#181A81 #81181A #1A8118
tetradic
#181A81 #81184F #817F18 #18814A
square
#181A81 #81184F #817F18 #18814A
split-complementary
#181A81 #814A18 #4F8118
monochromatic
#05051A #0E104D #181A81 #2224B5 #393CDA

Accessibility & contrast

On white

13.97
#181A81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#181A81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A81
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A81#FFFFFF#000000##FFFFFF
##181A811.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181a81;
/* rgb */ color: rgb(24, 26, 129);
/* oklch */ color: oklch(30.9% 0.165 270.7);
Tailwind
colors: {
  custom: {
    50: '#6a58a7',
    500: '#181a81',
    950: '#000000',
  },
}
SCSS
$custom: #181a81;
$custom-light: #6a58a7;
$custom-dark: #000000;
JSON
{
  "hex": "#181a81",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 129
  },
  "hsl": {
    "h": 238.857,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.30894,
    "c": 0.1649,
    "h": 270.7
  },
  "luminance": 0.02518
}

Semantic roles & 50–950 ramp

primary
#181A81
secondary
#B5B340
accent
#E83CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080310
muted
#7A787F

Preview Lab

Preview with #181A81

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

Preview Lab → · Contrast checker → · Palette generator →

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