#181972#181972

#181972 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.147 H 272.1°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#181972
RGBrgb(24, 25, 114)
HSLhsl(239, 65%, 27%)
HSVhsv(239, 79%, 45%)
CMYKcmyk(78.9%, 78.1%, 0%, 55.3%)
CIE-LABlab(16.02, 32.34, -50.60)
CIE-LCHlch(16.02, 60.05, 302.59°)
OKLaboklab(28.98% 0.0053 -0.1465)
OKLCHoklch(28.98% 0.147 272.1)
XYZxyz(3.7606, 2.1040, 16.1242)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181972 #727118
analogous
#184672 #181972 #441872
triadic
#181972 #721819 #197218
tetradic
#181972 #721846 #727118 #187244
square
#181972 #721846 #727118 #187244
split-complementary
#181972 #724418 #467218
monochromatic
#050619 #0D0E3F #181972 #2324A5 #3133D4

Accessibility & contrast

On white

14.78
#181972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#181972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181972
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181972#FFFFFF#000000##FFFFFF
##1819721.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#003344
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #181972;
/* rgb */ color: rgb(24, 25, 114);
/* oklch */ color: oklch(29.0% 0.147 272.1);
Tailwind
colors: {
  custom: {
    50: '#66579c',
    500: '#181972',
    950: '#000000',
  },
}
SCSS
$custom: #181972;
$custom-light: #66579c;
$custom-dark: #000000;
JSON
{
  "hex": "#181972",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 239.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.28981,
    "c": 0.14656,
    "h": 272.1
  },
  "luminance": 0.02104
}

Semantic roles & 50–950 ramp

primary
#181972
secondary
#A7A63E
accent
#E640E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #181972

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

Preview Lab → · Contrast checker → · Palette generator →

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