#181548#181548

#181548 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.7% C 0.092 H 279.4°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#181548
RGBrgb(24, 21, 72)
HSLhsl(244, 55%, 18%)
HSVhsv(244, 71%, 28%)
CMYKcmyk(66.7%, 70.8%, 0%, 71.8%)
CIE-LABlab(10.54, 19.21, -31.45)
CIE-LCHlch(10.54, 36.85, 301.42°)
OKLaboklab(23.68% 0.015 -0.0905)
OKLCHoklch(23.68% 0.092 279.4)
XYZxyz(1.8142, 1.1983, 6.2653)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181548 #454815
analogous
#152B48 #181548 #311548
triadic
#181548 #481815 #154818
tetradic
#181548 #48152B #454815 #154831
square
#181548 #48152B #454815 #154831
split-complementary
#181548 #483115 #2B4815
monochromatic
#080718 #080719 #181548 #282377 #3831A7

Accessibility & contrast

On white

16.94
#181548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#181548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181548
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181548#FFFFFF#000000##FFFFFF
##1815481.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#001B47
Tritanopia (blue-blind)
#00222C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #181548;
/* rgb */ color: rgb(24, 21, 72);
/* oklch */ color: oklch(23.7% 0.092 279.4);
Tailwind
colors: {
  custom: {
    50: '#5b527b',
    500: '#181548',
    950: '#000000',
  },
}
SCSS
$custom: #181548;
$custom-light: #5b527b;
$custom-dark: #000000;
JSON
{
  "hex": "#181548",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 243.529,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23681,
    "c": 0.09173,
    "h": 279.4
  },
  "luminance": 0.01198
}

Semantic roles & 50–950 ramp

primary
#181548
secondary
#7C8039
accent
#DE4AD5
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040209
muted
#79787B

Preview Lab

Preview with #181548

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

Preview Lab → · Contrast checker → · Palette generator →

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