#181581#181581

#181581 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.169 H 271.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#181581
RGBrgb(24, 21, 129)
HSLhsl(242, 72%, 29%)
HSVhsv(242, 84%, 51%)
CMYKcmyk(81.4%, 83.7%, 0%, 49.4%)
CIE-LABlab(17.06, 39.79, -58.50)
CIE-LCHlch(17.06, 70.75, 304.22°)
OKLaboklab(30.24% 0.0035 -0.1693)
OKLCHoklch(30.24% 0.169 271.2)
XYZxyz(4.6060, 2.3150, 20.9687)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181581 #7E8115
analogous
#154881 #181581 #4E1581
triadic
#181581 #811815 #158118
tetradic
#181581 #811548 #7E8115 #15814E
square
#181581 #811548 #7E8115 #15814E
split-complementary
#181581 #814E15 #488115
monochromatic
#05041A #0E0C4C #181581 #221EB6 #3733DE

Accessibility & contrast

On white

14.35
#181581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#181581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181581
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181581#FFFFFF#000000##FFFFFF
##1815811.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00247F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181581;
/* rgb */ color: rgb(24, 21, 129);
/* oklch */ color: oklch(30.2% 0.169 271.2);
Tailwind
colors: {
  custom: {
    50: '#6b55a7',
    500: '#181581',
    950: '#000000',
  },
}
SCSS
$custom: #181581;
$custom-light: #6b55a7;
$custom-dark: #000000;
JSON
{
  "hex": "#181581",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 241.667,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30239,
    "c": 0.16935,
    "h": 271.2
  },
  "luminance": 0.02316
}

Semantic roles & 50–950 ramp

primary
#181581
secondary
#B2B63C
accent
#EF39EA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181581

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

Preview Lab → · Contrast checker → · Palette generator →

#181581 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva