#181D71#181D71

#181D71 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.5% C 0.141 H 271.4°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#181D71
RGBrgb(24, 29, 113)
HSLhsl(237, 65%, 27%)
HSVhsv(237, 79%, 44%)
CMYKcmyk(78.8%, 74.3%, 0%, 55.7%)
CIE-LABlab(16.82, 29.44, -48.64)
CIE-LCHlch(16.82, 56.85, 301.19°)
OKLaboklab(29.52% 0.0034 -0.1408)
OKLCHoklch(29.52% 0.141 271.4)
XYZxyz(3.7957, 2.2648, 15.8567)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D71 #716C18
analogous
#184A71 #181D71 #401871
triadic
#181D71 #71181D #1D7118
tetradic
#181D71 #71184A #716C18 #187140
square
#181D71 #71184A #716C18 #187140
split-complementary
#181D71 #714018 #4A7118
monochromatic
#050619 #0D103F #181D71 #232AA3 #3039D3

Accessibility & contrast

On white

14.45
#181D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#181D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D71
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D71#FFFFFF#000000##FFFFFF
##181D711.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181d71;
/* rgb */ color: rgb(24, 29, 113);
/* oklch */ color: oklch(29.5% 0.141 271.4);
Tailwind
colors: {
  custom: {
    50: '#65599b',
    500: '#181d71',
    950: '#000000',
  },
}
SCSS
$custom: #181d71;
$custom-light: #65599b;
$custom-dark: #000000;
JSON
{
  "hex": "#181d71",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 236.629,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29515,
    "c": 0.14082,
    "h": 271.4
  },
  "luminance": 0.02265
}

Semantic roles & 50–950 ramp

primary
#181D71
secondary
#A6A13E
accent
#DE40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181D71

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

Preview Lab → · Contrast checker → · Palette generator →

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