#181545#181545

#181545 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.4% C 0.087 H 280.1°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#181545
RGBrgb(24, 21, 69)
HSLhsl(244, 53%, 18%)
HSVhsv(244, 70%, 27%)
CMYKcmyk(65.2%, 69.6%, 0%, 72.9%)
CIE-LABlab(10.26, 18.05, -29.81)
CIE-LCHlch(10.26, 34.85, 301.19°)
OKLaboklab(23.38% 0.0152 -0.0857)
OKLCHoklch(23.38% 0.087 280.1)
XYZxyz(1.7187, 1.1601, 5.7624)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181545 #424515
analogous
#152A45 #181545 #301545
triadic
#181545 #451815 #154518
tetradic
#181545 #45152A #424515 #154530
square
#181545 #45152A #424515 #154530
split-complementary
#181545 #453015 #2A4515
monochromatic
#080717 #080717 #181545 #282374 #3932A3

Accessibility & contrast

On white

17.05
#181545 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#181545 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181545
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181545#FFFFFF#000000##FFFFFF
##1815451.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E47
Deuteranopia (green-blind)
#001A44
Tritanopia (blue-blind)
#01212A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #181545;
/* rgb */ color: rgb(24, 21, 69);
/* oklch */ color: oklch(23.4% 0.087 280.1);
Tailwind
colors: {
  custom: {
    50: '#5b5279',
    500: '#181545',
    950: '#000000',
  },
}
SCSS
$custom: #181545;
$custom-light: #5b5279;
$custom-dark: #000000;
JSON
{
  "hex": "#181545",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 69
  },
  "hsl": {
    "h": 243.75,
    "s": 53.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23384,
    "c": 0.08704,
    "h": 280.1
  },
  "luminance": 0.0116
}

Semantic roles & 50–950 ramp

primary
#181545
secondary
#797D39
accent
#DD4BD4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040209
muted
#79787B

Preview Lab

Preview with #181545

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

Preview Lab → · Contrast checker → · Palette generator →

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