#181161#181161

#181161 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.8% C 0.132 H 275.7°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#181161
RGBrgb(24, 17, 97)
HSLhsl(245, 70%, 22%)
HSVhsv(245, 82%, 38%)
CMYKcmyk(75.3%, 82.5%, 0%, 62%)
CIE-LABlab(12.34, 31.06, -45.53)
CIE-LCHlch(12.34, 55.11, 304.30°)
OKLaboklab(25.79% 0.0131 -0.1316)
OKLCHoklch(25.79% 0.132 275.7)
XYZxyz(2.7341, 1.4579, 11.4443)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181161 #5A6111
analogous
#113261 #181161 #401161
triadic
#181161 #611811 #116118
tetradic
#181161 #611132 #5A6111 #116140
square
#181161 #611132 #5A6111 #116140
split-complementary
#181161 #614011 #326111
monochromatic
#06051A #0B082D #181161 #251A95 #3223C9

Accessibility & contrast

On white

16.26
#181161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#181161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181161
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181161#FFFFFF#000000##FFFFFF
##1811611.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002463
Deuteranopia (green-blind)
#001D60
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181161;
/* rgb */ color: rgb(24, 17, 97);
/* oklch */ color: oklch(25.8% 0.132 275.7);
Tailwind
colors: {
  custom: {
    50: '#62518f',
    500: '#181161',
    950: '#000000',
  },
}
SCSS
$custom: #181161;
$custom-light: #62518f;
$custom-dark: #000000;
JSON
{
  "hex": "#181161",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 97
  },
  "hsl": {
    "h": 245.25,
    "s": 70.175,
    "l": 22.353
  },
  "oklch": {
    "l": 0.25788,
    "c": 0.13228,
    "h": 275.7
  },
  "luminance": 0.01458
}

Semantic roles & 50–950 ramp

primary
#181161
secondary
#919934
accent
#ED3BDD
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #181161

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

Preview Lab → · Contrast checker → · Palette generator →

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