#181542#181542

#181542 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.1% C 0.082 H 280.8°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#181542
RGBrgb(24, 21, 66)
HSLhsl(244, 52%, 17%)
HSVhsv(244, 68%, 26%)
CMYKcmyk(63.6%, 68.2%, 0%, 74.1%)
CIE-LABlab(9.98, 16.89, -28.15)
CIE-LCHlch(9.98, 32.83, 300.96°)
OKLaboklab(23.09% 0.0154 -0.0808)
OKLCHoklch(23.09% 0.082 280.8)
XYZxyz(1.6279, 1.1238, 5.2843)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181542 #3F4215
analogous
#152942 #181542 #2F1542
triadic
#181542 #421815 #154218
tetradic
#181542 #421529 #3F4215 #15422F
square
#181542 #421529 #3F4215 #15422F
split-complementary
#181542 #422F15 #294215
monochromatic
#080717 #080717 #181542 #292470 #3A339F

Accessibility & contrast

On white

17.15
#181542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181542
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181542#FFFFFF#000000##FFFFFF
##1815421.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D43
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#042029
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #181542;
/* rgb */ color: rgb(24, 21, 66);
/* oklch */ color: oklch(23.1% 0.082 280.8);
Tailwind
colors: {
  custom: {
    50: '#5a5277',
    500: '#181542',
    950: '#000000',
  },
}
SCSS
$custom: #181542;
$custom-light: #5a5277;
$custom-dark: #000000;
JSON
{
  "hex": "#181542",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 66
  },
  "hsl": {
    "h": 244,
    "s": 51.724,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23094,
    "c": 0.08227,
    "h": 280.8
  },
  "luminance": 0.01124
}

Semantic roles & 50–950 ramp

primary
#181542
secondary
#757A39
accent
#DB4DD2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #181542

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

Preview Lab → · Contrast checker → · Palette generator →

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