#18154A#18154A

#18154A is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.9% C 0.095 H 279.0°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#18154A
RGBrgb(24, 21, 74)
HSLhsl(243, 56%, 19%)
HSVhsv(243, 72%, 29%)
CMYKcmyk(67.6%, 71.6%, 0%, 71%)
CIE-LABlab(10.74, 19.98, -32.52)
CIE-LCHlch(10.74, 38.17, 301.56°)
OKLaboklab(23.88% 0.0148 -0.0936)
OKLCHoklch(23.88% 0.095 279)
XYZxyz(1.8805, 1.2248, 6.6146)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18154A #474A15
analogous
#152C4A #18154A #32154A
triadic
#18154A #4A1815 #154A18
tetradic
#18154A #4A152C #474A15 #154A32
square
#18154A #4A152C #474A15 #154A32
split-complementary
#18154A #4A3215 #2C4A15
monochromatic
#080718 #09071A #18154A #27237A #3730A9

Accessibility & contrast

On white

16.87
#18154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#18154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18154A
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18154A#FFFFFF#000000##FFFFFF
##18154A1.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001B49
Tritanopia (blue-blind)
#00222D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #18154a;
/* rgb */ color: rgb(24, 21, 74);
/* oklch */ color: oklch(23.9% 0.095 279.0);
Tailwind
colors: {
  custom: {
    50: '#5c527d',
    500: '#18154a',
    950: '#000000',
  },
}
SCSS
$custom: #18154a;
$custom-light: #5c527d;
$custom-dark: #000000;
JSON
{
  "hex": "#18154a",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 243.396,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23883,
    "c": 0.0948,
    "h": 279
  },
  "luminance": 0.01225
}

Semantic roles & 50–950 ramp

primary
#18154A
secondary
#7E8239
accent
#DF49D7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #18154A

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

Preview Lab → · Contrast checker → · Palette generator →

#18154A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva