#181C8B#181C8B

#181C8B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.176 H 269.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#181C8B
RGBrgb(24, 28, 139)
HSLhsl(238, 71%, 32%)
HSVhsv(238, 83%, 55%)
CMYKcmyk(82.7%, 79.9%, 0%, 45.5%)
CIE-LABlab(19.59, 39.41, -60.60)
CIE-LCHlch(19.59, 72.29, 303.04°)
OKLaboklab(32.36% -0.0006 -0.1755)
OKLCHoklch(32.36% 0.176 269.8)
XYZxyz(5.4506, 2.8881, 24.6913)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C8B #8B8718
analogous
#18568B #181C8B #4E188B
triadic
#181C8B #8B181C #1C8B18
tetradic
#181C8B #8B1856 #8B8718 #188B4E
square
#181C8B #8B1856 #8B8718 #188B4E
split-complementary
#181C8B #8B4E18 #568B18
monochromatic
#060723 #0F1157 #181C8B #2127BF #3F45DE

Accessibility & contrast

On white

13.31
#181C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#181C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C8B
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C8B#FFFFFF#000000##FFFFFF
##181C8B1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.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: #181c8b;
/* rgb */ color: rgb(24, 28, 139);
/* oklch */ color: oklch(32.4% 0.176 269.8);
Tailwind
colors: {
  custom: {
    50: '#6d5aae',
    500: '#181c8b',
    950: '#000000',
  },
}
SCSS
$custom: #181c8b;
$custom-light: #6d5aae;
$custom-dark: #000000;
JSON
{
  "hex": "#181c8b",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 237.913,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32364,
    "c": 0.17552,
    "h": 269.8
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#181C8B
secondary
#BEBA40
accent
#E73AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #181C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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