#181A79#181A79

#181A79 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.155 H 271.3°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#181A79
RGBrgb(24, 26, 121)
HSLhsl(239, 67%, 28%)
HSVhsv(239, 80%, 47%)
CMYKcmyk(80.2%, 78.5%, 0%, 52.5%)
CIE-LABlab(17.05, 34.25, -53.41)
CIE-LCHlch(17.05, 63.45, 302.67°)
OKLaboklab(29.95% 0.0035 -0.1546)
OKLCHoklch(29.95% 0.155 271.3)
XYZxyz(4.1961, 2.3130, 18.3108)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A79 #797718
analogous
#184A79 #181A79 #461879
triadic
#181A79 #79181A #1A7918
tetradic
#181A79 #79184A #797718 #187946
square
#181A79 #79184A #797718 #187946
split-complementary
#181A79 #794618 #4A7918
monochromatic
#05051A #0E0F46 #181A79 #2225AC #3538D7

Accessibility & contrast

On white

14.36
#181A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#181A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181A79
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A79#FFFFFF#000000##FFFFFF
##181A791.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002577
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181a79;
/* rgb */ color: rgb(24, 26, 121);
/* oklch */ color: oklch(29.9% 0.155 271.3);
Tailwind
colors: {
  custom: {
    50: '#6858a1',
    500: '#181a79',
    950: '#000000',
  },
}
SCSS
$custom: #181a79;
$custom-light: #6858a1;
$custom-dark: #000000;
JSON
{
  "hex": "#181a79",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 238.763,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29949,
    "c": 0.15468,
    "h": 271.3
  },
  "luminance": 0.02313
}

Semantic roles & 50–950 ramp

primary
#181A79
secondary
#AEAC3F
accent
#E63EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181A79

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

Preview Lab → · Contrast checker → · Palette generator →

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