#181772#181772

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

Color values

HEX#181772
RGBrgb(24, 23, 114)
HSLhsl(241, 66%, 27%)
HSVhsv(241, 80%, 45%)
CMYKcmyk(78.9%, 79.8%, 0%, 55.3%)
CIE-LABlab(15.60, 33.55, -51.30)
CIE-LCHlch(15.60, 61.29, 303.18°)
OKLaboklab(28.68% 0.0062 -0.1485)
OKLCHoklch(28.68% 0.149 272.4)
XYZxyz(3.7193, 2.0215, 16.1105)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181772 #717217
analogous
#174472 #181772 #461772
triadic
#181772 #721817 #177218
tetradic
#181772 #721744 #717217 #177246
square
#181772 #721744 #717217 #177246
split-complementary
#181772 #724617 #447217
monochromatic
#050519 #0D0D3F #181772 #2321A5 #302ED5

Accessibility & contrast

On white

14.95
#181772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181772
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181772#FFFFFF#000000##FFFFFF
##1817721.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002270
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181772;
/* rgb */ color: rgb(24, 23, 114);
/* oklch */ color: oklch(28.7% 0.149 272.4);
Tailwind
colors: {
  custom: {
    50: '#66569c',
    500: '#181772',
    950: '#000000',
  },
}
SCSS
$custom: #181772;
$custom-light: #66569c;
$custom-dark: #000000;
JSON
{
  "hex": "#181772",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 240.659,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.28681,
    "c": 0.14861,
    "h": 272.4
  },
  "luminance": 0.02022
}

Semantic roles & 50–950 ramp

primary
#181772
secondary
#A6A83D
accent
#E93EE7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181772

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

Preview Lab → · Contrast checker → · Palette generator →

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