#180C4B#180C4B

#180C4B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.108 H 282.1°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#180C4B
RGBrgb(24, 12, 75)
HSLhsl(251, 72%, 17%)
HSVhsv(251, 84%, 29%)
CMYKcmyk(68%, 84%, 0%, 70.6%)
CIE-LABlab(8.70, 26.27, -36.57)
CIE-LCHlch(8.70, 45.03, 305.70°)
OKLaboklab(22.46% 0.0225 -0.1055)
OKLCHoklch(22.46% 0.108 282.1)
XYZxyz(1.7778, 0.9650, 6.7478)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C4B #3F4B0C
analogous
#0C1F4B #180C4B #380C4B
triadic
#180C4B #4B180C #0C4B18
tetradic
#180C4B #4B0C1F #3F4B0C #0C4B38
square
#180C4B #4B0C1F #3F4B0C #0C4B38
split-complementary
#180C4B #4B380C #1F4B0C
monochromatic
#08041A #08041A #180C4B #291480 #3A1DB5

Accessibility & contrast

On white

17.60
#180C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#180C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C4B
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C4B#FFFFFF#000000##FFFFFF
##180C4B1.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00174A
Tritanopia (blue-blind)
#001E2B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #180c4b;
/* rgb */ color: rgb(24, 12, 75);
/* oklch */ color: oklch(22.5% 0.108 282.1);
Tailwind
colors: {
  custom: {
    50: '#5d4c7e',
    500: '#180c4b',
    950: '#000000',
  },
}
SCSS
$custom: #180c4b;
$custom-light: #5d4c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#180c4b",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 75
  },
  "hsl": {
    "h": 251.429,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.22455,
    "c": 0.10784,
    "h": 282.1
  },
  "luminance": 0.00965
}

Semantic roles & 50–950 ramp

primary
#180C4B
secondary
#75872C
accent
#EF39CC
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #180C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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