#181880#181880

#181880 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.166 H 271.0°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#181880
RGBrgb(24, 24, 128)
HSLhsl(240, 68%, 30%)
HSVhsv(240, 81%, 50%)
CMYKcmyk(81.3%, 81.3%, 0%, 49.8%)
CIE-LABlab(17.49, 37.85, -57.16)
CIE-LCHlch(17.49, 68.55, 303.52°)
OKLaboklab(30.5% 0.0028 -0.1655)
OKLCHoklch(30.5% 0.166 271)
XYZxyz(4.5983, 2.4055, 20.6398)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181880 #808018
analogous
#184C80 #181880 #4C1880
triadic
#181880 #801818 #188018
tetradic
#181880 #80184C #808018 #18804C
square
#181880 #80184C #808018 #18804C
split-complementary
#181880 #804C18 #4C8018
monochromatic
#05051A #0E0E4C #181880 #2222B4 #3939DA

Accessibility & contrast

On white

14.18
#181880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#181880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181880
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181880#FFFFFF#000000##FFFFFF
##1818801.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181880;
/* rgb */ color: rgb(24, 24, 128);
/* oklch */ color: oklch(30.5% 0.166 271.0);
Tailwind
colors: {
  custom: {
    50: '#6a57a6',
    500: '#181880',
    950: '#000000',
  },
}
SCSS
$custom: #181880;
$custom-light: #6a57a6;
$custom-dark: #000000;
JSON
{
  "hex": "#181880",
  "rgb": {
    "r": 24,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 240,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.305,
    "c": 0.1655,
    "h": 271
  },
  "luminance": 0.02406
}

Semantic roles & 50–950 ramp

primary
#181880
secondary
#B4B440
accent
#EB3DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #181880

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

Preview Lab → · Contrast checker → · Palette generator →

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