#181D85#181D85

#181D85 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.167 H 270.1°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#181D85
RGBrgb(24, 29, 133)
HSLhsl(237, 69%, 31%)
HSVhsv(237, 82%, 52%)
CMYKcmyk(82%, 78.2%, 0%, 47.8%)
CIE-LABlab(19.08, 36.74, -57.68)
CIE-LCHlch(19.08, 68.38, 302.50°)
OKLaboklab(31.8% 0.0002 -0.1671)
OKLCHoklch(31.8% 0.167 270.1)
XYZxyz(5.0482, 2.7658, 22.4535)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D85 #858018
analogous
#185385 #181D85 #491885
triadic
#181D85 #85181D #1D8518
tetradic
#181D85 #851853 #858018 #188549
square
#181D85 #851853 #858018 #188549
split-complementary
#181D85 #854918 #538518
monochromatic
#05061D #0F1251 #181D85 #2128B9 #3C43DC

Accessibility & contrast

On white

13.52
#181D85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#181D85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D85
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D85#FFFFFF#000000##FFFFFF
##181D851.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002983
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181d85;
/* rgb */ color: rgb(24, 29, 133);
/* oklch */ color: oklch(31.8% 0.167 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b5aaa',
    500: '#181d85',
    950: '#000000',
  },
}
SCSS
$custom: #181d85;
$custom-light: #6b5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#181d85",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 133
  },
  "hsl": {
    "h": 237.248,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31797,
    "c": 0.16706,
    "h": 270.1
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

primary
#181D85
secondary
#B9B340
accent
#E43CEC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #181D85

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

Preview Lab → · Contrast checker → · Palette generator →

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