#180C50#180C50

#180C50 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.115 H 280.5°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#180C50
RGBrgb(24, 12, 80)
HSLhsl(251, 74%, 18%)
HSVhsv(251, 85%, 31%)
CMYKcmyk(70%, 85%, 0%, 68.6%)
CIE-LABlab(9.29, 28.01, -39.05)
CIE-LCHlch(9.29, 48.05, 305.65°)
OKLaboklab(23.05% 0.021 -0.1127)
OKLCHoklch(23.05% 0.115 280.5)
XYZxyz(1.9557, 1.0362, 7.6848)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C50 #44500C
analogous
#0C2250 #180C50 #3A0C50
triadic
#180C50 #50180C #0C5018
tetradic
#180C50 #500C22 #44500C #0C503A
square
#180C50 #500C22 #44500C #0C503A
split-complementary
#180C50 #503A0C #22500C
monochromatic
#08041B #08041B #180C50 #281485 #381CBA

Accessibility & contrast

On white

17.40
#180C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#180C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C50
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C50#FFFFFF#000000##FFFFFF
##180C501.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C52
Deuteranopia (green-blind)
#00174F
Tritanopia (blue-blind)
#00202E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #180c50;
/* rgb */ color: rgb(24, 12, 80);
/* oklch */ color: oklch(23.0% 0.115 280.5);
Tailwind
colors: {
  custom: {
    50: '#5e4d82',
    500: '#180c50',
    950: '#000000',
  },
}
SCSS
$custom: #180c50;
$custom-light: #5e4d82;
$custom-dark: #000000;
JSON
{
  "hex": "#180c50",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 80
  },
  "hsl": {
    "h": 250.588,
    "s": 73.913,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23047,
    "c": 0.11464,
    "h": 280.5
  },
  "luminance": 0.01036
}

Semantic roles & 50–950 ramp

primary
#180C50
secondary
#7B8B2C
accent
#F137D0
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #180C50

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

Preview Lab → · Contrast checker → · Palette generator →

#180C50 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva