#181541#181541

#181541 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.0% C 0.081 H 281.0°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#181541
RGBrgb(24, 21, 65)
HSLhsl(244, 51%, 17%)
HSVhsv(244, 68%, 25%)
CMYKcmyk(63.1%, 67.7%, 0%, 74.5%)
CIE-LABlab(9.89, 16.50, -27.59)
CIE-LCHlch(9.89, 32.15, 300.88°)
OKLaboklab(23% 0.0154 -0.0792)
OKLCHoklch(23% 0.081 281)
XYZxyz(1.5987, 1.1121, 5.1304)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181541 #3E4115
analogous
#152841 #181541 #2E1541
triadic
#181541 #411815 #154118
tetradic
#181541 #411528 #3E4115 #15412E
square
#181541 #411528 #3E4115 #15412E
split-complementary
#181541 #412E15 #284115
monochromatic
#090717 #090717 #181541 #29246F #3A339E

Accessibility & contrast

On white

17.18
#181541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#181541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181541
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181541#FFFFFF#000000##FFFFFF
##1815411.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#001A40
Tritanopia (blue-blind)
#051F28
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #181541;
/* rgb */ color: rgb(24, 21, 65);
/* oklch */ color: oklch(23.0% 0.081 281.0);
Tailwind
colors: {
  custom: {
    50: '#5a5276',
    500: '#181541',
    950: '#000000',
  },
}
SCSS
$custom: #181541;
$custom-light: #5a5276;
$custom-dark: #000000;
JSON
{
  "hex": "#181541",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 65
  },
  "hsl": {
    "h": 244.091,
    "s": 51.163,
    "l": 16.863
  },
  "oklch": {
    "l": 0.22999,
    "c": 0.08067,
    "h": 281
  },
  "luminance": 0.01112
}

Semantic roles & 50–950 ramp

primary
#181541
secondary
#747939
accent
#DB4DD1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #181541

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

Preview Lab → · Contrast checker → · Palette generator →

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