#181172#181172

#181172 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.9% C 0.154 H 273.1°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#181172
RGBrgb(24, 17, 114)
HSLhsl(244, 74%, 26%)
HSVhsv(244, 85%, 45%)
CMYKcmyk(78.9%, 85.1%, 0%, 55.3%)
CIE-LABlab(14.45, 36.85, -53.20)
CIE-LCHlch(14.45, 64.72, 304.71°)
OKLaboklab(27.88% 0.0085 -0.1539)
OKLCHoklch(27.88% 0.154 273.1)
XYZxyz(3.6134, 1.8096, 16.0752)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181172 #6B7211
analogous
#113A72 #181172 #481172
triadic
#181172 #721811 #117218
tetradic
#181172 #72113A #6B7211 #117248
square
#181172 #72113A #6B7211 #117248
split-complementary
#181172 #724811 #3A7211
monochromatic
#06041B #0D093D #181172 #2319A7 #2E21DD

Accessibility & contrast

On white

15.42
#181172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181172
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181172#FFFFFF#000000##FFFFFF
##1811721.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002975
Deuteranopia (green-blind)
#002070
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181172;
/* rgb */ color: rgb(24, 17, 114);
/* oklch */ color: oklch(27.9% 0.154 273.1);
Tailwind
colors: {
  custom: {
    50: '#67529c',
    500: '#181172',
    950: '#000000',
  },
}
SCSS
$custom: #181172;
$custom-light: #67529c;
$custom-dark: #000000;
JSON
{
  "hex": "#181172",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 244.33,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2788,
    "c": 0.15412,
    "h": 273.1
  },
  "luminance": 0.0181
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181172

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

Preview Lab → · Contrast checker → · Palette generator →

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