#181171#181171

#181171 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.153 H 273.3°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#181171
RGBrgb(24, 17, 113)
HSLhsl(244, 74%, 25%)
HSVhsv(244, 85%, 44%)
CMYKcmyk(78.8%, 85%, 0%, 55.7%)
CIE-LABlab(14.33, 36.52, -52.76)
CIE-LCHlch(14.33, 64.17, 304.69°)
OKLaboklab(27.76% 0.0087 -0.1526)
OKLCHoklch(27.76% 0.153 273.3)
XYZxyz(3.5568, 1.7870, 15.7771)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181171 #6A7111
analogous
#113A71 #181171 #481171
triadic
#181171 #711811 #117118
tetradic
#181171 #71113A #6A7111 #117148
square
#181171 #71113A #6A7111 #117148
split-complementary
#181171 #714811 #3A7111
monochromatic
#06041B #0D093C #181171 #2319A6 #2F21DB

Accessibility & contrast

On white

15.47
#181171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181171
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181171#FFFFFF#000000##FFFFFF
##1811711.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00206F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181171;
/* rgb */ color: rgb(24, 17, 113);
/* oklch */ color: oklch(27.8% 0.153 273.3);
Tailwind
colors: {
  custom: {
    50: '#67529b',
    500: '#181171',
    950: '#000000',
  },
}
SCSS
$custom: #181171;
$custom-light: #67529b;
$custom-dark: #000000;
JSON
{
  "hex": "#181171",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 244.375,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.27755,
    "c": 0.15287,
    "h": 273.3
  },
  "luminance": 0.01787
}

Semantic roles & 50–950 ramp

primary
#181171
secondary
#A0A836
accent
#F137E3
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #181171

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

Preview Lab → · Contrast checker → · Palette generator →

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