#181979#181979

#181979 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.156 H 271.4°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#181979
RGBrgb(24, 25, 121)
HSLhsl(239, 67%, 28%)
HSVhsv(239, 80%, 47%)
CMYKcmyk(80.2%, 79.3%, 0%, 52.5%)
CIE-LABlab(16.84, 34.85, -53.75)
CIE-LCHlch(16.84, 64.06, 302.95°)
OKLaboklab(29.8% 0.0039 -0.1556)
OKLCHoklch(29.8% 0.156 271.4)
XYZxyz(4.1743, 2.2695, 18.3035)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181979 #797818
analogous
#184979 #181979 #471879
triadic
#181979 #791819 #197918
tetradic
#181979 #791849 #797818 #187947
square
#181979 #791849 #797818 #187947
split-complementary
#181979 #794718 #497918
monochromatic
#05051A #0E0E46 #181979 #2224AC #3536D7

Accessibility & contrast

On white

14.44
#181979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#181979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181979
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181979#FFFFFF#000000##FFFFFF
##1819791.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181979;
/* rgb */ color: rgb(24, 25, 121);
/* oklch */ color: oklch(29.8% 0.156 271.4);
Tailwind
colors: {
  custom: {
    50: '#6857a1',
    500: '#181979',
    950: '#000000',
  },
}
SCSS
$custom: #181979;
$custom-light: #6857a1;
$custom-dark: #000000;
JSON
{
  "hex": "#181979",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 239.381,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29801,
    "c": 0.15568,
    "h": 271.4
  },
  "luminance": 0.0227
}

Semantic roles & 50–950 ramp

primary
#181979
secondary
#AEAD3F
accent
#E83EEA
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #181979

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

Preview Lab → · Contrast checker → · Palette generator →

#181979 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva