#181F72#181F72

#181F72 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.0% C 0.140 H 270.9°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#181F72
RGBrgb(24, 31, 114)
HSLhsl(235, 65%, 27%)
HSVhsv(235, 79%, 45%)
CMYKcmyk(78.9%, 72.8%, 0%, 55.3%)
CIE-LABlab(17.41, 28.50, -48.32)
CIE-LCHlch(17.41, 56.10, 300.54°)
OKLaboklab(29.97% 0.0022 -0.1398)
OKLCHoklch(29.97% 0.14 270.9)
XYZxyz(3.9029, 2.3886, 16.1717)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F72 #726B18
analogous
#184C72 #181F72 #3E1872
triadic
#181F72 #72181F #1F7218
tetradic
#181F72 #72184C #726B18 #18723E
square
#181F72 #72184C #726B18 #18723E
split-complementary
#181F72 #723E18 #4C7218
monochromatic
#050719 #0D113F #181F72 #232DA5 #313DD4

Accessibility & contrast

On white

14.21
#181F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#181F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F72
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F72#FFFFFF#000000##FFFFFF
##181F721.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181f72;
/* rgb */ color: rgb(24, 31, 114);
/* oklch */ color: oklch(30.0% 0.140 270.9);
Tailwind
colors: {
  custom: {
    50: '#655b9b',
    500: '#181f72',
    950: '#000000',
  },
}
SCSS
$custom: #181f72;
$custom-light: #655b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#181f72",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 235.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29971,
    "c": 0.13986,
    "h": 270.9
  },
  "luminance": 0.02389
}

Semantic roles & 50–950 ramp

primary
#181F72
secondary
#A79F3E
accent
#DB40E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #181F72

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

Preview Lab → · Contrast checker → · Palette generator →

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