#181780#181780

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

Color values

HEX#181780
RGBrgb(24, 23, 128)
HSLhsl(241, 70%, 30%)
HSVhsv(241, 82%, 50%)
CMYKcmyk(81.3%, 82%, 0%, 49.8%)
CIE-LABlab(17.30, 38.40, -57.47)
CIE-LCHlch(17.30, 69.12, 303.75°)
OKLaboklab(30.37% 0.0031 -0.1664)
OKLCHoklch(30.37% 0.166 271.1)
XYZxyz(4.5780, 2.3650, 20.6331)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181780 #7F8017
analogous
#174B80 #181780 #4C1780
triadic
#181780 #801817 #178018
tetradic
#181780 #80174B #7F8017 #17804C
square
#181780 #80174B #7F8017 #17804C
split-complementary
#181780 #804C17 #4B8017
monochromatic
#05051A #0E0E4C #181780 #2220B4 #3836DB

Accessibility & contrast

On white

14.26
#181780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#181780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181780
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181780#FFFFFF#000000##FFFFFF
##1817801.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.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: #181780;
/* rgb */ color: rgb(24, 23, 128);
/* oklch */ color: oklch(30.4% 0.166 271.1);
Tailwind
colors: {
  custom: {
    50: '#6a57a6',
    500: '#181780',
    950: '#000000',
  },
}
SCSS
$custom: #181780;
$custom-light: #6a57a6;
$custom-dark: #000000;
JSON
{
  "hex": "#181780",
  "rgb": {
    "r": 24,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 240.571,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.30368,
    "c": 0.1664,
    "h": 271.1
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#181780
secondary
#B3B43E
accent
#EC3BEB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #181780

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

Preview Lab → · Contrast checker → · Palette generator →

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