#181F8E#181F8E

#181F8E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.176 H 269.3°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#181F8E
RGBrgb(24, 31, 142)
HSLhsl(236, 71%, 33%)
HSVhsv(236, 83%, 56%)
CMYKcmyk(83.1%, 78.2%, 0%, 44.3%)
CIE-LABlab(20.54, 38.74, -60.89)
CIE-LCHlch(20.54, 72.17, 302.46°)
OKLaboklab(33.14% -0.002 -0.1764)
OKLCHoklch(33.14% 0.176 269.3)
XYZxyz(5.7475, 3.1265, 25.8865)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F8E #8E8718
analogous
#185A8E #181F8E #4C188E
triadic
#181F8E #8E181F #1F8E18
tetradic
#181F8E #8E185A #8E8718 #188E4C
square
#181F8E #8E185A #8E8718 #188E4C
split-complementary
#181F8E #8E4C18 #5A8E18
monochromatic
#060825 #0F145A #181F8E #212AC2 #414BDF

Accessibility & contrast

On white

12.92
#181F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#181F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F8E
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F8E#FFFFFF#000000##FFFFFF
##181F8E1.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181f8e;
/* rgb */ color: rgb(24, 31, 142);
/* oklch */ color: oklch(33.1% 0.176 269.3);
Tailwind
colors: {
  custom: {
    50: '#6d5cb0',
    500: '#181f8e',
    950: '#000000',
  },
}
SCSS
$custom: #181f8e;
$custom-light: #6d5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#181f8e",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 236.441,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3314,
    "c": 0.17642,
    "h": 269.3
  },
  "luminance": 0.03127
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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