#181A72#181A72

#181A72 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.145 H 271.9°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#181A72
RGBrgb(24, 26, 114)
HSLhsl(239, 65%, 27%)
HSVhsv(239, 79%, 45%)
CMYKcmyk(78.9%, 77.2%, 0%, 55.3%)
CIE-LABlab(16.24, 31.73, -50.24)
CIE-LCHlch(16.24, 59.42, 302.27°)
OKLaboklab(29.14% 0.0048 -0.1454)
OKLCHoklch(29.14% 0.146 271.9)
XYZxyz(3.7823, 2.1475, 16.1315)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A72 #727018
analogous
#184772 #181A72 #431872
triadic
#181A72 #72181A #1A7218
tetradic
#181A72 #721847 #727018 #187243
square
#181A72 #721847 #727018 #187243
split-complementary
#181A72 #724318 #477218
monochromatic
#050619 #0D0E3F #181A72 #2326A5 #3134D4

Accessibility & contrast

On white

14.69
#181A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181A72
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A72#FFFFFF#000000##FFFFFF
##181A721.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#003444
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181a72;
/* rgb */ color: rgb(24, 26, 114);
/* oklch */ color: oklch(29.1% 0.145 271.9);
Tailwind
colors: {
  custom: {
    50: '#66579c',
    500: '#181a72',
    950: '#000000',
  },
}
SCSS
$custom: #181a72;
$custom-light: #66579c;
$custom-dark: #000000;
JSON
{
  "hex": "#181a72",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 114
  },
  "hsl": {
    "h": 238.667,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.29137,
    "c": 0.1455,
    "h": 271.9
  },
  "luminance": 0.02148
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181A72

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

Preview Lab → · Contrast checker → · Palette generator →

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