#181152#181152

#181152 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.0% C 0.112 H 278.7°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#181152
RGBrgb(24, 17, 82)
HSLhsl(246, 66%, 19%)
HSVhsv(246, 79%, 32%)
CMYKcmyk(70.7%, 79.3%, 0%, 67.8%)
CIE-LABlab(10.59, 25.69, -38.28)
CIE-LCHlch(10.59, 46.11, 303.86°)
OKLaboklab(24.03% 0.0169 -0.1105)
OKLCHoklch(24.03% 0.112 278.7)
XYZxyz(2.0996, 1.2041, 8.1028)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181152 #4B5211
analogous
#112A52 #181152 #391152
triadic
#181152 #521811 #115218
tetradic
#181152 #52112A #4B5211 #115239
square
#181152 #52112A #4B5211 #115239
split-complementary
#181152 #523911 #2A5211
monochromatic
#070519 #09061F #181152 #271C85 #3626B7

Accessibility & contrast

On white

16.92
#181152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#181152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181152
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181152#FFFFFF#000000##FFFFFF
##1811521.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F54
Deuteranopia (green-blind)
#001A51
Tritanopia (blue-blind)
#002330
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #181152;
/* rgb */ color: rgb(24, 17, 82);
/* oklch */ color: oklch(24.0% 0.112 278.7);
Tailwind
colors: {
  custom: {
    50: '#5e5083',
    500: '#181152',
    950: '#000000',
  },
}
SCSS
$custom: #181152;
$custom-light: #5e5083;
$custom-dark: #000000;
JSON
{
  "hex": "#181152",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 246.462,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.24032,
    "c": 0.1118,
    "h": 278.7
  },
  "luminance": 0.01204
}

Semantic roles & 50–950 ramp

primary
#181152
secondary
#828B34
accent
#E93FD6
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #181152

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

Preview Lab → · Contrast checker → · Palette generator →

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