#181980#181980

#181980 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.165 H 270.9°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#181980
RGBrgb(24, 25, 128)
HSLhsl(239, 68%, 30%)
HSVhsv(239, 81%, 50%)
CMYKcmyk(81.3%, 80.5%, 0%, 49.8%)
CIE-LABlab(17.68, 37.30, -56.83)
CIE-LCHlch(17.68, 67.98, 303.27°)
OKLaboklab(30.64% 0.0025 -0.1646)
OKLCHoklch(30.64% 0.165 270.9)
XYZxyz(4.6193, 2.4474, 20.6468)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181980 #807F18
analogous
#184D80 #181980 #4B1880
triadic
#181980 #801819 #198018
tetradic
#181980 #80184D #807F18 #18804B
square
#181980 #80184D #807F18 #18804B
split-complementary
#181980 #804B18 #4D8018
monochromatic
#05051A #0E0F4C #181980 #2223B4 #393ADA

Accessibility & contrast

On white

14.10
#181980 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#181980 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181980
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181980#FFFFFF#000000##FFFFFF
##1819801.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00267E
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #181980;
/* rgb */ color: rgb(24, 25, 128);
/* oklch */ color: oklch(30.6% 0.165 270.9);
Tailwind
colors: {
  custom: {
    50: '#6a58a6',
    500: '#181980',
    950: '#000000',
  },
}
SCSS
$custom: #181980;
$custom-light: #6a58a6;
$custom-dark: #000000;
JSON
{
  "hex": "#181980",
  "rgb": {
    "r": 24,
    "g": 25,
    "b": 128
  },
  "hsl": {
    "h": 239.423,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.30636,
    "c": 0.16459,
    "h": 270.9
  },
  "luminance": 0.02448
}

Semantic roles & 50–950 ramp

primary
#181980
secondary
#B4B340
accent
#EA3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #181980

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

Preview Lab → · Contrast checker → · Palette generator →

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