#181281#181281

#181281 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.9% C 0.172 H 271.4°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#181281
RGBrgb(24, 18, 129)
HSLhsl(243, 76%, 29%)
HSVhsv(243, 86%, 51%)
CMYKcmyk(81.4%, 86%, 0%, 49.4%)
CIE-LABlab(16.56, 41.26, -59.33)
CIE-LCHlch(16.56, 72.27, 304.82°)
OKLaboklab(29.89% 0.0042 -0.1717)
OKLCHoklch(29.89% 0.172 271.4)
XYZxyz(4.5541, 2.2113, 20.9514)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181281 #7B8112
analogous
#124481 #181281 #501281
triadic
#181281 #811812 #128118
tetradic
#181281 #811244 #7B8112 #128150
square
#181281 #811244 #7B8112 #128150
split-complementary
#181281 #815012 #448112
monochromatic
#05041B #0E0B4B #181281 #2219B7 #362CE2

Accessibility & contrast

On white

14.56
#181281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#181281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181281
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181281#FFFFFF#000000##FFFFFF
##1812811.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E84
Deuteranopia (green-blind)
#00237F
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181281;
/* rgb */ color: rgb(24, 18, 129);
/* oklch */ color: oklch(29.9% 0.172 271.4);
Tailwind
colors: {
  custom: {
    50: '#6b54a7',
    500: '#181281',
    950: '#000000',
  },
}
SCSS
$custom: #181281;
$custom-light: #6b54a7;
$custom-dark: #000000;
JSON
{
  "hex": "#181281",
  "rgb": {
    "r": 24,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 243.243,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.29892,
    "c": 0.17171,
    "h": 271.4
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#181281
secondary
#B0B738
accent
#F236E8
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #181281

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

Preview Lab → · Contrast checker → · Palette generator →

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