#181B4A#181B4A

#181B4A is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.086 H 275.6°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#181B4A
RGBrgb(24, 27, 74)
HSLhsl(236, 51%, 19%)
HSVhsv(236, 68%, 29%)
CMYKcmyk(67.6%, 63.5%, 0%, 71%)
CIE-LABlab(12.43, 15.59, -29.77)
CIE-LCHlch(12.43, 33.60, 297.64°)
OKLaboklab(25.13% 0.0083 -0.0855)
OKLCHoklch(25.13% 0.086 275.6)
XYZxyz(2.0042, 1.4723, 6.6558)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B4A #4A4718
analogous
#18344A #181B4A #2E184A
triadic
#181B4A #4A181B #1B4A18
tetradic
#181B4A #4A1834 #4A4718 #184A2E
square
#181B4A #4A1834 #4A4718 #184A2E
split-complementary
#181B4A #4A2E18 #344A18
monochromatic
#070817 #090A1C #181B4A #272C78 #363DA6

Accessibility & contrast

On white

16.22
#181B4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181B4A
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B4A#FFFFFF#000000##FFFFFF
##181B4A1.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#001E49
Tritanopia (blue-blind)
#00262F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #181b4a;
/* rgb */ color: rgb(24, 27, 74);
/* oklch */ color: oklch(25.1% 0.086 275.6);
Tailwind
colors: {
  custom: {
    50: '#5b577d',
    500: '#181b4a',
    950: '#000000',
  },
}
SCSS
$custom: #181b4a;
$custom-light: #5b577d;
$custom-dark: #000000;
JSON
{
  "hex": "#181b4a",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 74
  },
  "hsl": {
    "h": 236.4,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25128,
    "c": 0.08591,
    "h": 275.6
  },
  "luminance": 0.01472
}

Semantic roles & 50–950 ramp

primary
#181B4A
secondary
#817D3D
accent
#D24DDA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040309
muted
#79787B

Preview Lab

Preview with #181B4A

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

Preview Lab → · Contrast checker → · Palette generator →

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