#180C52#180C52

#180C52 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.117 H 280.0°. Best body text is #FFFFFF at 17.31:1 contrast (WCAG AA passes).

Color values

HEX#180C52
RGBrgb(24, 12, 82)
HSLhsl(250, 74%, 18%)
HSVhsv(250, 85%, 32%)
CMYKcmyk(70.7%, 85.4%, 0%, 67.8%)
CIE-LABlab(9.53, 28.69, -40.03)
CIE-LCHlch(9.53, 49.25, 305.64°)
OKLaboklab(23.29% 0.0203 -0.1155)
OKLCHoklch(23.29% 0.117 280)
XYZxyz(2.0307, 1.0662, 8.0798)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C52 #46520C
analogous
#0C2352 #180C52 #3B0C52
triadic
#180C52 #52180C #0C5218
tetradic
#180C52 #520C23 #46520C #0C523B
square
#180C52 #520C23 #46520C #0C523B
split-complementary
#180C52 #523B0C #23520C
monochromatic
#08041B #08041D #180C52 #281487 #371CBD

Accessibility & contrast

On white

17.31
#180C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180C52
17.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C52#FFFFFF#000000##FFFFFF
##180C521.0017.311.2117.31
#FFFFFF17.311.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001851
Tritanopia (blue-blind)
#00212F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #180c52;
/* rgb */ color: rgb(24, 12, 82);
/* oklch */ color: oklch(23.3% 0.117 280.0);
Tailwind
colors: {
  custom: {
    50: '#5f4d83',
    500: '#180c52',
    950: '#000000',
  },
}
SCSS
$custom: #180c52;
$custom-light: #5f4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#180c52",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 82
  },
  "hsl": {
    "h": 250.286,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23288,
    "c": 0.11733,
    "h": 280
  },
  "luminance": 0.01066
}

Semantic roles & 50–950 ramp

primary
#180C52
secondary
#7D8D2C
accent
#F137D1
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #180C52

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

Preview Lab → · Contrast checker → · Palette generator →

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