#181F81#181F81

#181F81 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.160 H 270.0°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#181F81
RGBrgb(24, 31, 129)
HSLhsl(236, 69%, 30%)
HSVhsv(236, 81%, 51%)
CMYKcmyk(81.4%, 76%, 0%, 49.4%)
CIE-LABlab(19.05, 34.09, -55.20)
CIE-LCHlch(19.05, 64.88, 301.70°)
OKLaboklab(31.64% 0.0001 -0.1599)
OKLCHoklch(31.64% 0.16 270)
XYZxyz(4.8278, 2.7586, 21.0426)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F81 #817A18
analogous
#185381 #181F81 #461881
triadic
#181F81 #81181F #1F8118
tetradic
#181F81 #811853 #817A18 #188146
square
#181F81 #811853 #817A18 #188146
split-complementary
#181F81 #814618 #538118
monochromatic
#05061A #0E134D #181F81 #222BB5 #3944DA

Accessibility & contrast

On white

13.53
#181F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F81
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F81#FFFFFF#000000##FFFFFF
##181F811.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #181f81;
/* rgb */ color: rgb(24, 31, 129);
/* oklch */ color: oklch(31.6% 0.160 270.0);
Tailwind
colors: {
  custom: {
    50: '#6a5ba7',
    500: '#181f81',
    950: '#000000',
  },
}
SCSS
$custom: #181f81;
$custom-light: #6a5ba7;
$custom-dark: #000000;
JSON
{
  "hex": "#181f81",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 236,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.3164,
    "c": 0.15989,
    "h": 270
  },
  "luminance": 0.02759
}

Semantic roles & 50–950 ramp

primary
#181F81
secondary
#B5AD40
accent
#E03CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #181F81

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

Preview Lab → · Contrast checker → · Palette generator →

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