#180B50#180B50

#180B50 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.116 H 280.8°. Best body text is #FFFFFF at 17.46:1 contrast (WCAG AA passes).

Color values

HEX#180B50
RGBrgb(24, 11, 80)
HSLhsl(251, 76%, 18%)
HSVhsv(251, 86%, 31%)
CMYKcmyk(70%, 86.3%, 0%, 68.6%)
CIE-LABlab(9.10, 28.56, -39.37)
CIE-LCHlch(9.10, 48.64, 305.96°)
OKLaboklab(22.91% 0.0216 -0.1136)
OKLCHoklch(22.91% 0.116 280.8)
XYZxyz(1.9439, 1.0126, 7.6809)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B50 #43500B
analogous
#0B2150 #180B50 #3A0B50
triadic
#180B50 #50180B #0B5018
tetradic
#180B50 #500B21 #43500B #0B503A
square
#180B50 #500B21 #43500B #0B503A
split-complementary
#180B50 #503A0B #21500B
monochromatic
#08041B #08041B #180B50 #281286 #381ABC

Accessibility & contrast

On white

17.46
#180B50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#180B50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180B50
17.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B50#FFFFFF#000000##FFFFFF
##180B501.0017.461.2017.46
#FFFFFF17.461.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180b50;
/* rgb */ color: rgb(24, 11, 80);
/* oklch */ color: oklch(22.9% 0.116 280.8);
Tailwind
colors: {
  custom: {
    50: '#5e4c82',
    500: '#180b50',
    950: '#000000',
  },
}
SCSS
$custom: #180b50;
$custom-light: #5e4c82;
$custom-dark: #000000;
JSON
{
  "hex": "#180b50",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 80
  },
  "hsl": {
    "h": 251.304,
    "s": 75.824,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22912,
    "c": 0.11566,
    "h": 280.8
  },
  "luminance": 0.01013
}

Semantic roles & 50–950 ramp

primary
#180B50
secondary
#7A8C2B
accent
#F235CF
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010A
muted
#79777C

Preview Lab

Preview with #180B50

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

Preview Lab → · Contrast checker → · Palette generator →

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