#181976#181976

#181976 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.152 H 271.7°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#181976
RGBrgb(24, 25, 118)
HSLhsl(239, 66%, 28%)
HSVhsv(239, 80%, 46%)
CMYKcmyk(79.7%, 78.8%, 0%, 53.7%)
CIE-LABlab(16.49, 33.78, -52.41)
CIE-LCHlch(16.49, 62.36, 302.80°)
OKLaboklab(29.45% 0.0045 -0.1517)
OKLCHoklch(29.45% 0.152 271.7)
XYZxyz(3.9932, 2.1970, 17.3496)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181976 #767518
analogous
#184876 #181976 #461876
triadic
#181976 #761819 #197618
tetradic
#181976 #761848 #767518 #187646
square
#181976 #761848 #767518 #187646
split-complementary
#181976 #764618 #487618
monochromatic
#050519 #0E0E43 #181976 #2224A9 #3335D5

Accessibility & contrast

On white

14.59
#181976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#181976 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181976
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181976#FFFFFF#000000##FFFFFF
##1819761.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181976;
/* rgb */ color: rgb(24, 25, 118);
/* oklch */ color: oklch(29.4% 0.152 271.7);
Tailwind
colors: {
  custom: {
    50: '#67579f',
    500: '#181976',
    950: '#000000',
  },
}
SCSS
$custom: #181976;
$custom-light: #67579f;
$custom-dark: #000000;
JSON
{
  "hex": "#181976",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 239.362,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29448,
    "c": 0.1518,
    "h": 271.7
  },
  "luminance": 0.02197
}

Semantic roles & 50–950 ramp

primary
#181976
secondary
#ABAA3F
accent
#E73FE9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #181976

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

Preview Lab → · Contrast checker → · Palette generator →

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