#181540#181540

#181540 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.9% C 0.079 H 281.3°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#181540
RGBrgb(24, 21, 64)
HSLhsl(244, 51%, 17%)
HSVhsv(244, 67%, 25%)
CMYKcmyk(62.5%, 67.2%, 0%, 74.9%)
CIE-LABlab(9.80, 16.12, -27.03)
CIE-LCHlch(9.80, 31.47, 300.81°)
OKLaboklab(22.91% 0.0155 -0.0775)
OKLCHoklch(22.91% 0.079 281.3)
XYZxyz(1.5700, 1.1006, 4.9792)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181540 #3D4015
analogous
#152840 #181540 #2E1540
triadic
#181540 #401815 #154018
tetradic
#181540 #401528 #3D4015 #15402E
square
#181540 #401528 #3D4015 #15402E
split-complementary
#181540 #402E15 #284015
monochromatic
#090817 #090817 #181540 #29246E #3B339C

Accessibility & contrast

On white

17.21
#181540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181540
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181540#FFFFFF#000000##FFFFFF
##1815401.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D41
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#061F28
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #181540;
/* rgb */ color: rgb(24, 21, 64);
/* oklch */ color: oklch(22.9% 0.079 281.3);
Tailwind
colors: {
  custom: {
    50: '#595275',
    500: '#181540',
    950: '#000000',
  },
}
SCSS
$custom: #181540;
$custom-light: #595275;
$custom-dark: #000000;
JSON
{
  "hex": "#181540",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 244.186,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.22905,
    "c": 0.07905,
    "h": 281.3
  },
  "luminance": 0.01101
}

Semantic roles & 50–950 ramp

primary
#181540
secondary
#737839
accent
#DA4ED0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040208
muted
#79787B

Preview Lab

Preview with #181540

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

Preview Lab → · Contrast checker → · Palette generator →

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