#180C53#180C53

#180C53 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.119 H 279.7°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#180C53
RGBrgb(24, 12, 83)
HSLhsl(250, 75%, 19%)
HSVhsv(250, 86%, 33%)
CMYKcmyk(71.1%, 85.5%, 0%, 67.5%)
CIE-LABlab(9.65, 29.04, -40.51)
CIE-LCHlch(9.65, 49.84, 305.63°)
OKLaboklab(23.41% 0.02 -0.117)
OKLCHoklch(23.41% 0.119 279.7)
XYZxyz(2.0690, 1.0815, 8.2817)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C53 #47530C
analogous
#0C2353 #180C53 #3B0C53
triadic
#180C53 #53180C #0C5318
tetradic
#180C53 #530C23 #47530C #0C533B
square
#180C53 #530C23 #47530C #0C533B
split-complementary
#180C53 #533B0C #23530C
monochromatic
#08041B #09041E #180C53 #271488 #371BBE

Accessibility & contrast

On white

17.26
#180C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#180C53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C53
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C53#FFFFFF#000000##FFFFFF
##180C531.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180c53;
/* rgb */ color: rgb(24, 12, 83);
/* oklch */ color: oklch(23.4% 0.119 279.7);
Tailwind
colors: {
  custom: {
    50: '#5f4d84',
    500: '#180c53',
    950: '#000000',
  },
}
SCSS
$custom: #180c53;
$custom-light: #5f4d84;
$custom-dark: #000000;
JSON
{
  "hex": "#180c53",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 83
  },
  "hsl": {
    "h": 250.141,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23409,
    "c": 0.11866,
    "h": 279.7
  },
  "luminance": 0.01082
}

Semantic roles & 50–950 ramp

primary
#180C53
secondary
#7E8E2D
accent
#F136D2
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #180C53

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

Preview Lab → · Contrast checker → · Palette generator →

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