#181A71#181A71

#181A71 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.144 H 272.0°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#181A71
RGBrgb(24, 26, 113)
HSLhsl(239, 65%, 27%)
HSVhsv(239, 79%, 44%)
CMYKcmyk(78.8%, 77%, 0%, 55.7%)
CIE-LABlab(16.13, 31.36, -49.78)
CIE-LCHlch(16.13, 58.83, 302.21°)
OKLaboklab(29.02% 0.005 -0.1441)
OKLCHoklch(29.02% 0.144 272)
XYZxyz(3.7257, 2.1248, 15.8334)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A71 #716F18
analogous
#184771 #181A71 #431871
triadic
#181A71 #71181A #1A7118
tetradic
#181A71 #711847 #716F18 #187143
square
#181A71 #711847 #716F18 #187143
split-complementary
#181A71 #714318 #477118
monochromatic
#050619 #0D0E3F #181A71 #2326A3 #3034D3

Accessibility & contrast

On white

14.74
#181A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#181A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A71
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A71#FFFFFF#000000##FFFFFF
##181A711.0014.741.4314.74
#FFFFFF14.741.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181a71;
/* rgb */ color: rgb(24, 26, 113);
/* oklch */ color: oklch(29.0% 0.144 272.0);
Tailwind
colors: {
  custom: {
    50: '#66579b',
    500: '#181a71',
    950: '#000000',
  },
}
SCSS
$custom: #181a71;
$custom-light: #66579b;
$custom-dark: #000000;
JSON
{
  "hex": "#181a71",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 238.652,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29022,
    "c": 0.14417,
    "h": 272
  },
  "luminance": 0.02125
}

Semantic roles & 50–950 ramp

primary
#181A71
secondary
#A6A43E
accent
#E440E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181A71

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

Preview Lab → · Contrast checker → · Palette generator →

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