#181B47#181B47

#181B47 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.9% C 0.081 H 275.9°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#181B47
RGBrgb(24, 27, 71)
HSLhsl(236, 49%, 19%)
HSVhsv(236, 66%, 28%)
CMYKcmyk(66.2%, 62%, 0%, 72.2%)
CIE-LABlab(12.17, 14.39, -28.10)
CIE-LCHlch(12.17, 31.57, 297.12°)
OKLaboklab(24.86% 0.0083 -0.0806)
OKLCHoklch(24.86% 0.081 275.9)
XYZxyz(1.9056, 1.4328, 6.1362)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B47 #474418
analogous
#183247 #181B47 #2C1847
triadic
#181B47 #47181B #1B4718
tetradic
#181B47 #471832 #474418 #18472C
square
#181B47 #471832 #474418 #18472C
split-complementary
#181B47 #472C18 #324718
monochromatic
#080917 #090A19 #181B47 #272C75 #373EA2

Accessibility & contrast

On white

16.32
#181B47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#181B47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B47
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B47#FFFFFF#000000##FFFFFF
##181B471.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002249
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#00252D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181b47;
/* rgb */ color: rgb(24, 27, 71);
/* oklch */ color: oklch(24.9% 0.081 275.9);
Tailwind
colors: {
  custom: {
    50: '#5b577b',
    500: '#181b47',
    950: '#000000',
  },
}
SCSS
$custom: #181b47;
$custom-light: #5b577b;
$custom-dark: #000000;
JSON
{
  "hex": "#181b47",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 71
  },
  "hsl": {
    "h": 236.17,
    "s": 49.474,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24856,
    "c": 0.08103,
    "h": 275.9
  },
  "luminance": 0.01433
}

Semantic roles & 50–950 ramp

primary
#181B47
secondary
#7E7A3D
accent
#D04FD9
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #181B47

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

Preview Lab → · Contrast checker → · Palette generator →

#181B47 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva