#181781#181781

#181781 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.168 H 271.0°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#181781
RGBrgb(24, 23, 129)
HSLhsl(241, 70%, 30%)
HSVhsv(241, 82%, 51%)
CMYKcmyk(81.4%, 82.2%, 0%, 49.4%)
CIE-LABlab(17.42, 38.74, -57.90)
CIE-LCHlch(17.42, 69.66, 303.79°)
OKLaboklab(30.49% 0.0029 -0.1676)
OKLCHoklch(30.49% 0.168 271)
XYZxyz(4.6442, 2.3914, 20.9814)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181781 #808117
analogous
#174B81 #181781 #4D1781
triadic
#181781 #811817 #178118
tetradic
#181781 #81174B #808117 #17814D
square
#181781 #81174B #808117 #17814D
split-complementary
#181781 #814D17 #4B8117
monochromatic
#05051A #0E0E4D #181781 #2220B5 #3937DB

Accessibility & contrast

On white

14.20
#181781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#181781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181781
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181781#FFFFFF#000000##FFFFFF
##1817811.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00257F
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181781;
/* rgb */ color: rgb(24, 23, 129);
/* oklch */ color: oklch(30.5% 0.168 271.0);
Tailwind
colors: {
  custom: {
    50: '#6a57a7',
    500: '#181781',
    950: '#000000',
  },
}
SCSS
$custom: #181781;
$custom-light: #6a57a7;
$custom-dark: #000000;
JSON
{
  "hex": "#181781",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 240.566,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3049,
    "c": 0.16764,
    "h": 271
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#181781
secondary
#B4B53E
accent
#ED3BEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181781

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

Preview Lab → · Contrast checker → · Palette generator →

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