#181B81#181B81

#181B81 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.164 H 270.6°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#181B81
RGBrgb(24, 27, 129)
HSLhsl(238, 69%, 30%)
HSVhsv(238, 81%, 51%)
CMYKcmyk(81.4%, 79.1%, 0%, 49.4%)
CIE-LABlab(18.20, 36.50, -56.61)
CIE-LCHlch(18.20, 67.35, 302.81°)
OKLaboklab(31.04% 0.0016 -0.1639)
OKLCHoklch(31.04% 0.164 270.6)
XYZxyz(4.7297, 2.5625, 21.0100)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B81 #817E18
analogous
#184F81 #181B81 #4A1881
triadic
#181B81 #81181B #1B8118
tetradic
#181B81 #81184F #817E18 #18814A
square
#181B81 #81184F #817E18 #18814A
split-complementary
#181B81 #814A18 #4F8118
monochromatic
#05051A #0E104D #181B81 #2226B5 #393EDA

Accessibility & contrast

On white

13.88
#181B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#181B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B81
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B81#FFFFFF#000000##FFFFFF
##181B811.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #181b81;
/* rgb */ color: rgb(24, 27, 129);
/* oklch */ color: oklch(31.0% 0.164 270.6);
Tailwind
colors: {
  custom: {
    50: '#6a59a7',
    500: '#181b81',
    950: '#000000',
  },
}
SCSS
$custom: #181b81;
$custom-light: #6a59a7;
$custom-dark: #000000;
JSON
{
  "hex": "#181b81",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 238.286,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.31036,
    "c": 0.16395,
    "h": 270.6
  },
  "luminance": 0.02563
}

Semantic roles & 50–950 ramp

primary
#181B81
secondary
#B5B240
accent
#E63CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080310
muted
#7A787F

Preview Lab

Preview with #181B81

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

Preview Lab → · Contrast checker → · Palette generator →

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