#181B8B#181B8B

#181B8B is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.176 H 269.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#181B8B
RGBrgb(24, 27, 139)
HSLhsl(238, 71%, 32%)
HSVhsv(238, 83%, 55%)
CMYKcmyk(82.7%, 80.6%, 0%, 45.5%)
CIE-LABlab(19.40, 39.96, -60.92)
CIE-LCHlch(19.40, 72.86, 303.26°)
OKLaboklab(32.23% -0.0003 -0.1764)
OKLCHoklch(32.23% 0.176 269.9)
XYZxyz(5.4272, 2.8415, 24.6835)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B8B #8B8818
analogous
#18558B #181B8B #4F188B
triadic
#181B8B #8B181B #1B8B18
tetradic
#181B8B #8B1855 #8B8818 #188B4F
square
#181B8B #8B1855 #8B8818 #188B4F
split-complementary
#181B8B #8B4F18 #558B18
monochromatic
#060723 #0F1157 #181B8B #2125BF #3F44DE

Accessibility & contrast

On white

13.39
#181B8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#181B8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B8B
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B8B#FFFFFF#000000##FFFFFF
##181B8B1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358E
Deuteranopia (green-blind)
#002989
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #181b8b;
/* rgb */ color: rgb(24, 27, 139);
/* oklch */ color: oklch(32.2% 0.176 269.9);
Tailwind
colors: {
  custom: {
    50: '#6d5aae',
    500: '#181b8b',
    950: '#000000',
  },
}
SCSS
$custom: #181b8b;
$custom-light: #6d5aae;
$custom-dark: #000000;
JSON
{
  "hex": "#181b8b",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 139
  },
  "hsl": {
    "h": 238.435,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32229,
    "c": 0.17644,
    "h": 269.9
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#181B8B
secondary
#BEBB40
accent
#E93AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #181B8B

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

Preview Lab → · Contrast checker → · Palette generator →

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