#181571#181571

#181571 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.149 H 272.8°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#181571
RGBrgb(24, 21, 113)
HSLhsl(242, 69%, 26%)
HSVhsv(242, 81%, 44%)
CMYKcmyk(78.8%, 81.4%, 0%, 55.7%)
CIE-LABlab(15.07, 34.35, -51.52)
CIE-LCHlch(15.07, 61.92, 303.69°)
OKLaboklab(28.28% 0.0072 -0.1491)
OKLCHoklch(28.28% 0.149 272.8)
XYZxyz(3.6245, 1.9224, 15.7996)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181571 #6E7115
analogous
#154071 #181571 #461571
triadic
#181571 #711815 #157118
tetradic
#181571 #711540 #6E7115 #157146
square
#181571 #711540 #6E7115 #157146
split-complementary
#181571 #714615 #407115
monochromatic
#05051A #0D0B3D #181571 #231FA5 #2F29D7

Accessibility & contrast

On white

15.17
#181571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#181571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181571
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181571#FFFFFF#000000##FFFFFF
##1815711.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00216F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181571;
/* rgb */ color: rgb(24, 21, 113);
/* oklch */ color: oklch(28.3% 0.149 272.8);
Tailwind
colors: {
  custom: {
    50: '#66549b',
    500: '#181571',
    950: '#000000',
  },
}
SCSS
$custom: #181571;
$custom-light: #66549b;
$custom-dark: #000000;
JSON
{
  "hex": "#181571",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 241.957,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28277,
    "c": 0.14927,
    "h": 272.8
  },
  "luminance": 0.01923
}

Semantic roles & 50–950 ramp

primary
#181571
secondary
#A4A73B
accent
#EB3CE6
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181571

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

Preview Lab → · Contrast checker → · Palette generator →

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