#181771#181771

#181771 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.147 H 272.5°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#181771
RGBrgb(24, 23, 113)
HSLhsl(241, 66%, 27%)
HSVhsv(241, 80%, 44%)
CMYKcmyk(78.8%, 79.6%, 0%, 55.7%)
CIE-LABlab(15.48, 33.19, -50.85)
CIE-LCHlch(15.48, 60.72, 303.13°)
OKLaboklab(28.56% 0.0064 -0.1472)
OKLCHoklch(28.56% 0.147 272.5)
XYZxyz(3.6627, 1.9988, 15.8124)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181771 #707117
analogous
#174371 #181771 #451771
triadic
#181771 #711817 #177118
tetradic
#181771 #711743 #707117 #177145
square
#181771 #711743 #707117 #177145
split-complementary
#181771 #714517 #437117
monochromatic
#050519 #0D0D3E #181771 #2321A4 #302ED4

Accessibility & contrast

On white

15.00
#181771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#181771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181771
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181771#FFFFFF#000000##FFFFFF
##1817711.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181771;
/* rgb */ color: rgb(24, 23, 113);
/* oklch */ color: oklch(28.6% 0.147 272.5);
Tailwind
colors: {
  custom: {
    50: '#66559b',
    500: '#181771',
    950: '#000000',
  },
}
SCSS
$custom: #181771;
$custom-light: #66559b;
$custom-dark: #000000;
JSON
{
  "hex": "#181771",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 240.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28563,
    "c": 0.14731,
    "h": 272.5
  },
  "luminance": 0.01999
}

Semantic roles & 50–950 ramp

primary
#181771
secondary
#A5A73D
accent
#E93FE7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181771

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

Preview Lab → · Contrast checker → · Palette generator →

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