#181748#181748

#181748 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.1% C 0.089 H 278.3°. Best body text is #FFFFFF at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#181748
RGBrgb(24, 23, 72)
HSLhsl(241, 52%, 19%)
HSVhsv(241, 68%, 28%)
CMYKcmyk(66.7%, 68.1%, 0%, 71.8%)
CIE-LABlab(11.10, 17.76, -30.55)
CIE-LCHlch(11.10, 35.33, 300.17°)
OKLaboklab(24.09% 0.0128 -0.0878)
OKLCHoklch(24.09% 0.089 278.3)
XYZxyz(1.8524, 1.2747, 6.2781)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181748 #474817
analogous
#172E48 #181748 #301748
triadic
#181748 #481817 #174818
tetradic
#181748 #48172E #474817 #174830
square
#181748 #48172E #474817 #174830
split-complementary
#181748 #483017 #2E4817
monochromatic
#080717 #09081A #181748 #272676 #3735A5

Accessibility & contrast

On white

16.73
#181748 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#181748 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181748
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181748#FFFFFF#000000##FFFFFF
##1817481.0016.731.2516.73
#FFFFFF16.731.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204A
Deuteranopia (green-blind)
#001C47
Tritanopia (blue-blind)
#00232C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #181748;
/* rgb */ color: rgb(24, 23, 72);
/* oklch */ color: oklch(24.1% 0.089 278.3);
Tailwind
colors: {
  custom: {
    50: '#5b547b',
    500: '#181748',
    950: '#000000',
  },
}
SCSS
$custom: #181748;
$custom-light: #5b547b;
$custom-dark: #000000;
JSON
{
  "hex": "#181748",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 72
  },
  "hsl": {
    "h": 241.224,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24086,
    "c": 0.08877,
    "h": 278.3
  },
  "luminance": 0.01275
}

Semantic roles & 50–950 ramp

primary
#181748
secondary
#7E7F3C
accent
#DB4DD8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040209
muted
#79787B

Preview Lab

Preview with #181748

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

Preview Lab → · Contrast checker → · Palette generator →

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