#181536#181536

#181536 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.0% C 0.062 H 284.2°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#181536
RGBrgb(24, 21, 54)
HSLhsl(245, 44%, 15%)
HSVhsv(245, 61%, 21%)
CMYKcmyk(55.6%, 61.1%, 0%, 78.8%)
CIE-LABlab(8.96, 12.29, -21.22)
CIE-LCHlch(8.96, 24.53, 300.07°)
OKLaboklab(22.02% 0.0152 -0.0604)
OKLCHoklch(22.02% 0.062 284.2)
XYZxyz(1.3105, 0.9968, 3.6127)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181536 #333615
analogous
#152336 #181536 #291536
triadic
#181536 #361815 #153618
tetradic
#181536 #361523 #333615 #153629
square
#181536 #361523 #333615 #153629
split-complementary
#181536 #362915 #233615
monochromatic
#0A0916 #0A0916 #181536 #2C2662 #3F378E

Accessibility & contrast

On white

17.51
#181536 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#181536 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181536
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181536#FFFFFF#000000##FFFFFF
##1815361.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061A37
Deuteranopia (green-blind)
#051835
Tritanopia (blue-blind)
#0E1C23
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #181536;
/* rgb */ color: rgb(24, 21, 54);
/* oklch */ color: oklch(22.0% 0.062 284.2);
Tailwind
colors: {
  custom: {
    50: '#57526d',
    500: '#181536',
    950: '#000000',
  },
}
SCSS
$custom: #181536;
$custom-light: #57526d;
$custom-dark: #000000;
JSON
{
  "hex": "#181536",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 54
  },
  "hsl": {
    "h": 245.455,
    "s": 44,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22016,
    "c": 0.06233,
    "h": 284.2
  },
  "luminance": 0.00997
}

Semantic roles & 50–950 ramp

primary
#181536
secondary
#686D3A
accent
#D454C8
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030207
muted
#78787A

Preview Lab

Preview with #181536

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

Preview Lab → · Contrast checker → · Palette generator →

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