#181557#181557

#181557 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.3% C 0.114 H 276.5°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#181557
RGBrgb(24, 21, 87)
HSLhsl(243, 61%, 21%)
HSVhsv(243, 76%, 34%)
CMYKcmyk(72.4%, 75.9%, 0%, 65.9%)
CIE-LABlab(12.08, 24.93, -39.23)
CIE-LCHlch(12.08, 46.49, 302.43°)
OKLaboklab(25.26% 0.0128 -0.1133)
OKLCHoklch(25.26% 0.114 276.5)
XYZxyz(2.3646, 1.4184, 9.1641)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181557 #545715
analogous
#153357 #181557 #391557
triadic
#181557 #571815 #155718
tetradic
#181557 #571533 #545715 #155739
square
#181557 #571533 #545715 #155739
split-complementary
#181557 #573915 #335715
monochromatic
#070619 #0A0926 #181557 #262188 #332DBA

Accessibility & contrast

On white

16.36
#181557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#181557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181557
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181557#FFFFFF#000000##FFFFFF
##1815571.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#001D56
Tritanopia (blue-blind)
#002734
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181557;
/* rgb */ color: rgb(24, 21, 87);
/* oklch */ color: oklch(25.3% 0.114 276.5);
Tailwind
colors: {
  custom: {
    50: '#5f5387',
    500: '#181557',
    950: '#000000',
  },
}
SCSS
$custom: #181557;
$custom-light: #5f5387;
$custom-dark: #000000;
JSON
{
  "hex": "#181557",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 242.727,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.25263,
    "c": 0.11403,
    "h": 276.5
  },
  "luminance": 0.01419
}

Semantic roles & 50–950 ramp

primary
#181557
secondary
#8B8F39
accent
#E444DD
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #181557

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

Preview Lab → · Contrast checker → · Palette generator →

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