#180440#180440

#180440 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.103 H 289.0°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#180440
RGBrgb(24, 4, 64)
HSLhsl(260, 88%, 13%)
HSVhsv(260, 94%, 25%)
CMYKcmyk(62.5%, 93.8%, 0%, 74.9%)
CIE-LABlab(5.88, 26.63, -33.43)
CIE-LCHlch(5.88, 42.74, 308.54°)
OKLaboklab(19.95% 0.0334 -0.0973)
OKLCHoklch(19.95% 0.103 289)
XYZxyz(1.3452, 0.6511, 4.9043)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180440 #2C4004
analogous
#040E40 #180440 #360440
triadic
#180440 #401804 #044018
tetradic
#180440 #40040E #2C4004 #044036
square
#180440 #40040E #2C4004 #044036
split-complementary
#180440 #403604 #0E4004
monochromatic
#0B021D #0B021D #180440 #2E087A #430BB3

Accessibility & contrast

On white

18.58
#180440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#180440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180440
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180440#FFFFFF#000000##FFFFFF
##1804401.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001442
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#071623
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180440;
/* rgb */ color: rgb(24, 4, 64);
/* oklch */ color: oklch(20.0% 0.103 289.0);
Tailwind
colors: {
  custom: {
    50: '#5b4776',
    500: '#180440',
    950: '#000000',
  },
}
SCSS
$custom: #180440;
$custom-light: #5b4776;
$custom-dark: #000000;
JSON
{
  "hex": "#180440",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 260,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.19953,
    "c": 0.10289,
    "h": 289
  },
  "luminance": 0.00651
}

Semantic roles & 50–950 ramp

primary
#180440
secondary
#60811F
accent
#FE29B7
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #180440

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

Preview Lab → · Contrast checker → · Palette generator →

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