#181D8F#181D8F

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

Color values

HEX#181D8F
RGBrgb(24, 29, 143)
HSLhsl(237, 71%, 33%)
HSVhsv(237, 83%, 56%)
CMYKcmyk(83.2%, 79.7%, 0%, 43.9%)
CIE-LABlab(20.26, 40.22, -61.98)
CIE-LCHlch(20.26, 73.89, 302.98°)
OKLaboklab(32.98% -0.0016 -0.1795)
OKLCHoklch(32.98% 0.18 269.5)
XYZxyz(5.7723, 3.0554, 26.2668)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D8F #8F8A18
analogous
#18588F #181D8F #4E188F
triadic
#181D8F #8F181D #1D8F18
tetradic
#181D8F #8F1858 #8F8A18 #188F4E
square
#181D8F #8F1858 #8F8A18 #188F4E
split-complementary
#181D8F #8F4E18 #588F18
monochromatic
#060826 #0F125B #181D8F #2128C3 #4249DF

Accessibility & contrast

On white

13.03
#181D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#181D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D8F
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D8F#FFFFFF#000000##FFFFFF
##181D8F1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #181d8f;
/* rgb */ color: rgb(24, 29, 143);
/* oklch */ color: oklch(33.0% 0.180 269.5);
Tailwind
colors: {
  custom: {
    50: '#6e5bb1',
    500: '#181d8f',
    950: '#000000',
  },
}
SCSS
$custom: #181d8f;
$custom-light: #6e5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#181d8f",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 237.479,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.32978,
    "c": 0.17954,
    "h": 269.5
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#181D8F
secondary
#C0BB43
accent
#E63AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #181D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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