#181F71#181F71

#181F71 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.138 H 271.0°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#181F71
RGBrgb(24, 31, 113)
HSLhsl(235, 65%, 27%)
HSVhsv(235, 79%, 44%)
CMYKcmyk(78.8%, 72.6%, 0%, 55.7%)
CIE-LABlab(17.30, 28.12, -47.84)
CIE-LCHlch(17.30, 55.50, 300.44°)
OKLaboklab(29.86% 0.0023 -0.1385)
OKLCHoklch(29.86% 0.138 271)
XYZxyz(3.8463, 2.3660, 15.8736)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F71 #716A18
analogous
#184C71 #181F71 #3E1871
triadic
#181F71 #71181F #1F7118
tetradic
#181F71 #71184C #716A18 #18713E
square
#181F71 #71184C #716A18 #18713E
split-complementary
#181F71 #713E18 #4C7118
monochromatic
#050719 #0D113F #181F71 #232DA3 #303DD3

Accessibility & contrast

On white

14.25
#181F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#181F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F71
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F71#FFFFFF#000000##FFFFFF
##181F711.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181f71;
/* rgb */ color: rgb(24, 31, 113);
/* oklch */ color: oklch(29.9% 0.138 271.0);
Tailwind
colors: {
  custom: {
    50: '#655b9b',
    500: '#181f71',
    950: '#000000',
  },
}
SCSS
$custom: #181f71;
$custom-light: #655b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#181f71",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 235.281,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29863,
    "c": 0.13848,
    "h": 271
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181F71

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

Preview Lab → · Contrast checker → · Palette generator →

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