#180641#180641

#180641 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.101 H 287.8°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#180641
RGBrgb(24, 6, 65)
HSLhsl(258, 83%, 14%)
HSVhsv(258, 91%, 25%)
CMYKcmyk(63.1%, 90.8%, 0%, 74.5%)
CIE-LABlab(6.38, 25.99, -33.34)
CIE-LCHlch(6.38, 42.27, 307.94°)
OKLaboklab(20.4% 0.031 -0.0966)
OKLCHoklch(20.4% 0.101 287.8)
XYZxyz(1.3957, 0.7060, 5.0627)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180641 #2F4106
analogous
#061241 #180641 #360641
triadic
#180641 #411806 #064118
tetradic
#180641 #410612 #2F4106 #064136
square
#180641 #410612 #2F4106 #064136
split-complementary
#180641 #413606 #124106
monochromatic
#0A031C #0A031C #180641 #2D0B79 #4110B1

Accessibility & contrast

On white

18.40
#180641 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180641 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180641
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180641#FFFFFF#000000##FFFFFF
##1806411.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001543
Deuteranopia (green-blind)
#001340
Tritanopia (blue-blind)
#061724
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180641;
/* rgb */ color: rgb(24, 6, 65);
/* oklch */ color: oklch(20.4% 0.101 287.8);
Tailwind
colors: {
  custom: {
    50: '#5b4876',
    500: '#180641',
    950: '#000000',
  },
}
SCSS
$custom: #180641;
$custom-light: #5b4876;
$custom-dark: #000000;
JSON
{
  "hex": "#180641",
  "rgb": {
    "r": 24,
    "g": 6,
    "b": 65
  },
  "hsl": {
    "h": 258.305,
    "s": 83.099,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20397,
    "c": 0.10143,
    "h": 287.8
  },
  "luminance": 0.00706
}

Semantic roles & 50–950 ramp

primary
#180641
secondary
#648122
accent
#F92EBB
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #180641

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

Preview Lab → · Contrast checker → · Palette generator →

#180641 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva