#181F8F#181F8F

#181F8F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.178 H 269.3°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#181F8F
RGBrgb(24, 31, 143)
HSLhsl(236, 71%, 33%)
HSVhsv(236, 83%, 56%)
CMYKcmyk(83.2%, 78.3%, 0%, 43.9%)
CIE-LABlab(20.66, 39.09, -61.32)
CIE-LCHlch(20.66, 72.72, 302.51°)
OKLaboklab(33.26% -0.0022 -0.1777)
OKLCHoklch(33.26% 0.178 269.3)
XYZxyz(5.8229, 3.1566, 26.2837)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F8F #8F8818
analogous
#185A8F #181F8F #4D188F
triadic
#181F8F #8F181F #1F8F18
tetradic
#181F8F #8F185A #8F8818 #188F4D
square
#181F8F #8F185A #8F8818 #188F4D
split-complementary
#181F8F #8F4D18 #5A8F18
monochromatic
#060826 #0F145B #181F8F #212AC3 #424BDF

Accessibility & contrast

On white

12.87
#181F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F8F
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F8F#FFFFFF#000000##FFFFFF
##181F8F1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #181f8f;
/* rgb */ color: rgb(24, 31, 143);
/* oklch */ color: oklch(33.3% 0.178 269.3);
Tailwind
colors: {
  custom: {
    50: '#6e5cb1',
    500: '#181f8f',
    950: '#000000',
  },
}
SCSS
$custom: #181f8f;
$custom-light: #6e5cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#181f8f",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 236.471,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33257,
    "c": 0.17767,
    "h": 269.3
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#181F8F
secondary
#C0B943
accent
#E33AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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