#181747#181747

#181747 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.0% C 0.087 H 278.5°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#181747
RGBrgb(24, 23, 71)
HSLhsl(241, 51%, 18%)
HSVhsv(241, 68%, 28%)
CMYKcmyk(66.2%, 67.6%, 0%, 72.2%)
CIE-LABlab(11.01, 17.37, -30.00)
CIE-LCHlch(11.01, 34.66, 300.07°)
OKLaboklab(23.99% 0.0129 -0.0862)
OKLCHoklch(23.99% 0.087 278.5)
XYZxyz(1.8201, 1.2618, 6.1077)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181747 #464717
analogous
#172E47 #181747 #301747
triadic
#181747 #471817 #174718
tetradic
#181747 #47172E #464717 #174730
square
#181747 #47172E #464717 #174730
split-complementary
#181747 #473017 #2E4717
monochromatic
#080717 #080819 #181747 #282675 #3735A3

Accessibility & contrast

On white

16.77
#181747 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181747
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181747#FFFFFF#000000##FFFFFF
##1817471.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F49
Deuteranopia (green-blind)
#001C46
Tritanopia (blue-blind)
#00232C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #181747;
/* rgb */ color: rgb(24, 23, 71);
/* oklch */ color: oklch(24.0% 0.087 278.5);
Tailwind
colors: {
  custom: {
    50: '#5b547b',
    500: '#181747',
    950: '#000000',
  },
}
SCSS
$custom: #181747;
$custom-light: #5b547b;
$custom-dark: #000000;
JSON
{
  "hex": "#181747",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 71
  },
  "hsl": {
    "h": 241.25,
    "s": 51.064,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2399,
    "c": 0.08718,
    "h": 278.5
  },
  "luminance": 0.01262
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181747

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

Preview Lab → · Contrast checker → · Palette generator →

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