#181B4B#181B4B

#181B4B is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.088 H 275.5°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#181B4B
RGBrgb(24, 27, 75)
HSLhsl(236, 52%, 19%)
HSVhsv(236, 68%, 29%)
CMYKcmyk(68%, 64%, 0%, 70.6%)
CIE-LABlab(12.52, 15.99, -30.32)
CIE-LCHlch(12.52, 34.27, 297.81°)
OKLaboklab(25.22% 0.0083 -0.0871)
OKLCHoklch(25.22% 0.088 275.5)
XYZxyz(2.0382, 1.4859, 6.8346)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B4B #4B4818
analogous
#18354B #181B4B #2F184B
triadic
#181B4B #4B181B #1B4B18
tetradic
#181B4B #4B1835 #4B4818 #184B2F
square
#181B4B #4B1835 #4B4818 #184B2F
split-complementary
#181B4B #4B2F18 #354B18
monochromatic
#070817 #090A1D #181B4B #272C79 #363CA8

Accessibility & contrast

On white

16.19
#181B4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#181B4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B4B
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B4B#FFFFFF#000000##FFFFFF
##181B4B1.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#002730
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181b4b;
/* rgb */ color: rgb(24, 27, 75);
/* oklch */ color: oklch(25.2% 0.088 275.5);
Tailwind
colors: {
  custom: {
    50: '#5b577e',
    500: '#181b4b',
    950: '#000000',
  },
}
SCSS
$custom: #181b4b;
$custom-light: #5b577e;
$custom-dark: #000000;
JSON
{
  "hex": "#181b4b",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 75
  },
  "hsl": {
    "h": 236.471,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25221,
    "c": 0.08752,
    "h": 275.5
  },
  "luminance": 0.01486
}

Semantic roles & 50–950 ramp

primary
#181B4B
secondary
#827E3D
accent
#D34DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181B4B

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

Preview Lab → · Contrast checker → · Palette generator →

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