#181871#181871

#181871 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.146 H 272.3°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#181871
RGBrgb(24, 24, 113)
HSLhsl(240, 65%, 27%)
HSVhsv(240, 79%, 44%)
CMYKcmyk(78.8%, 78.8%, 0%, 55.7%)
CIE-LABlab(15.69, 32.59, -50.50)
CIE-LCHlch(15.69, 60.10, 302.84°)
OKLaboklab(28.71% 0.0059 -0.1462)
OKLCHoklch(28.71% 0.146 272.3)
XYZxyz(3.6830, 2.0393, 15.8191)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181871 #717118
analogous
#184571 #181871 #451871
triadic
#181871 #711818 #187118
tetradic
#181871 #711845 #717118 #187145
square
#181871 #711845 #717118 #187145
split-complementary
#181871 #714518 #457118
monochromatic
#050519 #0D0D3F #181871 #2323A3 #3030D3

Accessibility & contrast

On white

14.91
#181871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#181871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181871
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181871#FFFFFF#000000##FFFFFF
##1818711.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181871;
/* rgb */ color: rgb(24, 24, 113);
/* oklch */ color: oklch(28.7% 0.146 272.3);
Tailwind
colors: {
  custom: {
    50: '#66569b',
    500: '#181871',
    950: '#000000',
  },
}
SCSS
$custom: #181871;
$custom-light: #66569b;
$custom-dark: #000000;
JSON
{
  "hex": "#181871",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.28712,
    "c": 0.14628,
    "h": 272.3
  },
  "luminance": 0.0204
}

Semantic roles & 50–950 ramp

primary
#181871
secondary
#A6A63E
accent
#E840E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181871

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

Preview Lab → · Contrast checker → · Palette generator →

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