#181C81#181C81

#181C81 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.163 H 270.4°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#181C81
RGBrgb(24, 28, 129)
HSLhsl(238, 69%, 30%)
HSVhsv(238, 81%, 51%)
CMYKcmyk(81.4%, 78.3%, 0%, 49.4%)
CIE-LABlab(18.41, 35.91, -56.27)
CIE-LCHlch(18.41, 66.75, 302.55°)
OKLaboklab(31.18% 0.0012 -0.163)
OKLCHoklch(31.18% 0.163 270.4)
XYZxyz(4.7530, 2.6091, 21.0177)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181C81 #817D18
analogous
#185181 #181C81 #481881
triadic
#181C81 #81181C #1C8118
tetradic
#181C81 #811851 #817D18 #188148
square
#181C81 #811851 #817D18 #188148
split-complementary
#181C81 #814818 #518118
monochromatic
#05061A #0E114D #181C81 #2227B5 #393FDA

Accessibility & contrast

On white

13.80
#181C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#181C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181C81
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181C81#FFFFFF#000000##FFFFFF
##181C811.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003284
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #181c81;
/* rgb */ color: rgb(24, 28, 129);
/* oklch */ color: oklch(31.2% 0.163 270.4);
Tailwind
colors: {
  custom: {
    50: '#6a5aa7',
    500: '#181c81',
    950: '#000000',
  },
}
SCSS
$custom: #181c81;
$custom-light: #6a5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#181c81",
  "rgb": {
    "r": 24,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 237.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.31182,
    "c": 0.16296,
    "h": 270.4
  },
  "luminance": 0.0261
}

Semantic roles & 50–950 ramp

primary
#181C81
secondary
#B5B140
accent
#E53CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F

Preview Lab

Preview with #181C81

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

Preview Lab → · Contrast checker → · Palette generator →

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