#180C51#180C51

#180C51 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.116 H 280.3°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#180C51
RGBrgb(24, 12, 81)
HSLhsl(250, 74%, 18%)
HSVhsv(250, 85%, 32%)
CMYKcmyk(70.4%, 85.2%, 0%, 68.2%)
CIE-LABlab(9.41, 28.35, -39.54)
CIE-LCHlch(9.41, 48.65, 305.64°)
OKLaboklab(23.17% 0.0207 -0.1141)
OKLCHoklch(23.17% 0.116 280.3)
XYZxyz(1.9929, 1.0511, 7.8808)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C51 #45510C
analogous
#0C2251 #180C51 #3A0C51
triadic
#180C51 #51180C #0C5118
tetradic
#180C51 #510C22 #45510C #0C513A
square
#180C51 #510C22 #45510C #0C513A
split-complementary
#180C51 #513A0C #22510C
monochromatic
#08041B #08041C #180C51 #281486 #381CBC

Accessibility & contrast

On white

17.35
#180C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180C51
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C51#FFFFFF#000000##FFFFFF
##180C511.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D53
Deuteranopia (green-blind)
#001850
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #180c51;
/* rgb */ color: rgb(24, 12, 81);
/* oklch */ color: oklch(23.2% 0.116 280.3);
Tailwind
colors: {
  custom: {
    50: '#5f4d83',
    500: '#180c51',
    950: '#000000',
  },
}
SCSS
$custom: #180c51;
$custom-light: #5f4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#180c51",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 250.435,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23167,
    "c": 0.11598,
    "h": 280.3
  },
  "luminance": 0.01051
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #180C51

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

Preview Lab → · Contrast checker → · Palette generator →

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