#181381#181381

#181381 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.171 H 271.3°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#181381
RGBrgb(24, 19, 129)
HSLhsl(243, 74%, 29%)
HSVhsv(243, 85%, 51%)
CMYKcmyk(81.4%, 85.3%, 0%, 49.4%)
CIE-LABlab(16.72, 40.79, -59.06)
CIE-LCHlch(16.72, 71.77, 304.63°)
OKLaboklab(30% 0.004 -0.1709)
OKLCHoklch(30% 0.171 271.3)
XYZxyz(4.5707, 2.2444, 20.9569)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181381 #7C8113
analogous
#134581 #181381 #4F1381
triadic
#181381 #811813 #138118
tetradic
#181381 #811345 #7C8113 #13814F
square
#181381 #811345 #7C8113 #13814F
split-complementary
#181381 #814F13 #458113
monochromatic
#05041B #0E0B4C #181381 #221BB6 #362EE0

Accessibility & contrast

On white

14.49
#181381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#181381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181381
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181381#FFFFFF#000000##FFFFFF
##1813811.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00247F
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181381;
/* rgb */ color: rgb(24, 19, 129);
/* oklch */ color: oklch(30.0% 0.171 271.3);
Tailwind
colors: {
  custom: {
    50: '#6b54a7',
    500: '#181381',
    950: '#000000',
  },
}
SCSS
$custom: #181381;
$custom-light: #6b54a7;
$custom-dark: #000000;
JSON
{
  "hex": "#181381",
  "rgb": {
    "r": 24,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 242.727,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30004,
    "c": 0.17096,
    "h": 271.3
  },
  "luminance": 0.02245
}

Semantic roles & 50–950 ramp

primary
#181381
secondary
#B1B63A
accent
#F137E9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181381

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

Preview Lab → · Contrast checker → · Palette generator →

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