#181F8D#181F8D

#181F8D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.175 H 269.4°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#181F8D
RGBrgb(24, 31, 141)
HSLhsl(236, 71%, 32%)
HSVhsv(236, 83%, 55%)
CMYKcmyk(83%, 78%, 0%, 44.7%)
CIE-LABlab(20.43, 38.39, -60.46)
CIE-LCHlch(20.43, 71.62, 302.41°)
OKLaboklab(33.02% -0.0019 -0.1752)
OKLCHoklch(33.02% 0.175 269.4)
XYZxyz(5.6727, 3.0966, 25.4929)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F8D #8D8618
analogous
#185A8D #181F8D #4B188D
triadic
#181F8D #8D181F #1F8D18
tetradic
#181F8D #8D185A #8D8618 #188D4B
square
#181F8D #8D185A #8D8618 #188D4B
split-complementary
#181F8D #8D4B18 #5A8D18
monochromatic
#060824 #0F1459 #181F8D #212AC1 #414ADF

Accessibility & contrast

On white

12.97
#181F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#181F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F8D
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F8D#FFFFFF#000000##FFFFFF
##181F8D1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#002B8B
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #181f8d;
/* rgb */ color: rgb(24, 31, 141);
/* oklch */ color: oklch(33.0% 0.175 269.4);
Tailwind
colors: {
  custom: {
    50: '#6d5cb0',
    500: '#181f8d',
    950: '#000000',
  },
}
SCSS
$custom: #181f8d;
$custom-light: #6d5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#181f8d",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 236.41,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33024,
    "c": 0.17518,
    "h": 269.4
  },
  "luminance": 0.03097
}

Semantic roles & 50–950 ramp

primary
#181F8D
secondary
#BFB842
accent
#E33AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #181F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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