#181157#181157

#181157 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.6% C 0.119 H 277.6°. Best body text is #FFFFFF at 16.71:1 contrast (WCAG AA passes).

Color values

HEX#181157
RGBrgb(24, 17, 87)
HSLhsl(246, 67%, 20%)
HSVhsv(246, 80%, 34%)
CMYKcmyk(72.4%, 80.5%, 0%, 65.9%)
CIE-LABlab(11.16, 27.50, -40.76)
CIE-LCHlch(11.16, 49.17, 304.01°)
OKLaboklab(24.61% 0.0157 -0.1177)
OKLCHoklch(24.61% 0.119 277.6)
XYZxyz(2.2969, 1.2830, 9.1416)
Luminance0.0128 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181157 #505711
analogous
#112D57 #181157 #3B1157
triadic
#181157 #571811 #115718
tetradic
#181157 #57112D #505711 #11573B
square
#181157 #57112D #505711 #11573B
split-complementary
#181157 #573B11 #2D5711
monochromatic
#07051A #0A0724 #181157 #261B8A #3425BD

Accessibility & contrast

On white

16.71
#181157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#181157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181157
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181157#FFFFFF#000000##FFFFFF
##1811571.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002159
Deuteranopia (green-blind)
#001B56
Tritanopia (blue-blind)
#002533
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #181157;
/* rgb */ color: rgb(24, 17, 87);
/* oklch */ color: oklch(24.6% 0.119 277.6);
Tailwind
colors: {
  custom: {
    50: '#605087',
    500: '#181157',
    950: '#000000',
  },
}
SCSS
$custom: #181157;
$custom-light: #605087;
$custom-dark: #000000;
JSON
{
  "hex": "#181157",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 246,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.24605,
    "c": 0.11877,
    "h": 277.6
  },
  "luminance": 0.01283
}

Semantic roles & 50–950 ramp

primary
#181157
secondary
#879034
accent
#EA3ED9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020B
muted
#7A787C

Preview Lab

Preview with #181157

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

Preview Lab → · Contrast checker → · Palette generator →

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