#180C44#180C44

#180C44 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.098 H 284.5°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#180C44
RGBrgb(24, 12, 68)
HSLhsl(253, 70%, 16%)
HSVhsv(253, 82%, 27%)
CMYKcmyk(64.7%, 82.4%, 0%, 73.3%)
CIE-LABlab(7.90, 23.82, -32.97)
CIE-LCHlch(7.90, 40.67, 305.84°)
OKLaboklab(21.65% 0.0246 -0.095)
OKLCHoklch(21.65% 0.098 284.5)
XYZxyz(1.5512, 0.8744, 5.5548)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180C44 #38440C
analogous
#0C1C44 #180C44 #340C44
triadic
#180C44 #44180C #0C4418
tetradic
#180C44 #440C1C #38440C #0C4434
square
#180C44 #440C1C #38440C #0C4434
split-complementary
#180C44 #44340C #1C440C
monochromatic
#09051A #09051A #180C44 #2A1578 #3D1EAC

Accessibility & contrast

On white

17.88
#180C44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#180C44 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180C44
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180C44#FFFFFF#000000##FFFFFF
##180C441.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001946
Deuteranopia (green-blind)
#001643
Tritanopia (blue-blind)
#031B27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180c44;
/* rgb */ color: rgb(24, 12, 68);
/* oklch */ color: oklch(21.7% 0.098 284.5);
Tailwind
colors: {
  custom: {
    50: '#5b4c79',
    500: '#180c44',
    950: '#000000',
  },
}
SCSS
$custom: #180c44;
$custom-light: #5b4c79;
$custom-dark: #000000;
JSON
{
  "hex": "#180c44",
  "rgb": {
    "r": 24,
    "g": 12,
    "b": 68
  },
  "hsl": {
    "h": 252.857,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21652,
    "c": 0.09808,
    "h": 284.5
  },
  "luminance": 0.00874
}

Semantic roles & 50–950 ramp

primary
#180C44
secondary
#6E802C
accent
#ED3BC7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180C44

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

Preview Lab → · Contrast checker → · Palette generator →

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