#181970#181970

#181970 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.144 H 272.3°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#181970
RGBrgb(24, 25, 112)
HSLhsl(239, 65%, 27%)
HSVhsv(239, 79%, 44%)
CMYKcmyk(78.6%, 77.7%, 0%, 56.1%)
CIE-LABlab(15.79, 31.62, -49.68)
CIE-LCHlch(15.79, 58.89, 302.47°)
OKLaboklab(28.75% 0.0057 -0.1438)
OKLCHoklch(28.75% 0.144 272.3)
XYZxyz(3.6480, 2.0589, 15.5312)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181970 #706F18
analogous
#184570 #181970 #431870
triadic
#181970 #701819 #197018
tetradic
#181970 #701845 #706F18 #187043
square
#181970 #701845 #706F18 #187043
split-complementary
#181970 #704318 #457018
monochromatic
#050619 #0D0E3E #181970 #2324A2 #3032D3

Accessibility & contrast

On white

14.87
#181970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#181970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181970
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181970#FFFFFF#000000##FFFFFF
##1819701.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C73
Deuteranopia (green-blind)
#00236E
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181970;
/* rgb */ color: rgb(24, 25, 112);
/* oklch */ color: oklch(28.7% 0.144 272.3);
Tailwind
colors: {
  custom: {
    50: '#66579a',
    500: '#181970',
    950: '#000000',
  },
}
SCSS
$custom: #181970;
$custom-light: #66579a;
$custom-dark: #000000;
JSON
{
  "hex": "#181970",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 239.318,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28749,
    "c": 0.14391,
    "h": 272.3
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181970

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

Preview Lab → · Contrast checker → · Palette generator →

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