#180640#180640

#180640 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.3% C 0.100 H 288.3°. Best body text is #FFFFFF at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#180640
RGBrgb(24, 6, 64)
HSLhsl(259, 83%, 14%)
HSVhsv(259, 91%, 25%)
CMYKcmyk(62.5%, 90.6%, 0%, 74.9%)
CIE-LABlab(6.27, 25.59, -32.79)
CIE-LCHlch(6.27, 41.59, 307.97°)
OKLaboklab(20.28% 0.0314 -0.0951)
OKLCHoklch(20.28% 0.1 288.3)
XYZxyz(1.3670, 0.6945, 4.9115)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180640 #2E4006
analogous
#061140 #180640 #350640
triadic
#180640 #401806 #064018
tetradic
#180640 #400611 #2E4006 #064035
square
#180640 #400611 #2E4006 #064035
split-complementary
#180640 #403506 #114006
monochromatic
#0A031C #0A031C #180640 #2D0B78 #4210B0

Accessibility & contrast

On white

18.44
#180640 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180640
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180640#FFFFFF#000000##FFFFFF
##1806401.0018.441.1418.44
#FFFFFF18.441.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#071723
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180640;
/* rgb */ color: rgb(24, 6, 64);
/* oklch */ color: oklch(20.3% 0.100 288.3);
Tailwind
colors: {
  custom: {
    50: '#5b4875',
    500: '#180640',
    950: '#000000',
  },
}
SCSS
$custom: #180640;
$custom-light: #5b4875;
$custom-dark: #000000;
JSON
{
  "hex": "#180640",
  "rgb": {
    "r": 24,
    "g": 6,
    "b": 64
  },
  "hsl": {
    "h": 258.621,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.20277,
    "c": 0.10012,
    "h": 288.3
  },
  "luminance": 0.00695
}

Semantic roles & 50–950 ramp

primary
#180640
secondary
#638022
accent
#F92FBA
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #180640

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

Preview Lab → · Contrast checker → · Palette generator →

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