#181580#181580

#181580 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.168 H 271.3°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#181580
RGBrgb(24, 21, 128)
HSLhsl(242, 72%, 29%)
HSVhsv(242, 84%, 50%)
CMYKcmyk(81.3%, 83.6%, 0%, 49.8%)
CIE-LABlab(16.93, 39.46, -58.07)
CIE-LCHlch(16.93, 70.21, 304.20°)
OKLaboklab(30.12% 0.0037 -0.1681)
OKLCHoklch(30.12% 0.168 271.3)
XYZxyz(4.5398, 2.2885, 20.6204)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181580 #7D8015
analogous
#154880 #181580 #4E1580
triadic
#181580 #801815 #158018
tetradic
#181580 #801548 #7D8015 #15804E
square
#181580 #801548 #7D8015 #15804E
split-complementary
#181580 #804E15 #488015
monochromatic
#05041A #0E0C4B #181580 #221EB5 #3732DD

Accessibility & contrast

On white

14.41
#181580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#181580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181580
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181580#FFFFFF#000000##FFFFFF
##1815801.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00247E
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #181580;
/* rgb */ color: rgb(24, 21, 128);
/* oklch */ color: oklch(30.1% 0.168 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a55a6',
    500: '#181580',
    950: '#000000',
  },
}
SCSS
$custom: #181580;
$custom-light: #6a55a6;
$custom-dark: #000000;
JSON
{
  "hex": "#181580",
  "rgb": {
    "r": 24,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 241.682,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30115,
    "c": 0.16812,
    "h": 271.3
  },
  "luminance": 0.02289
}

Semantic roles & 50–950 ramp

primary
#181580
secondary
#B2B53C
accent
#EF39E9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #181580

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

Preview Lab → · Contrast checker → · Palette generator →

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