#180340#180340

#180340 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.8% C 0.104 H 289.3°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#180340
RGBrgb(24, 3, 64)
HSLhsl(261, 91%, 13%)
HSVhsv(261, 95%, 25%)
CMYKcmyk(62.5%, 95.3%, 0%, 74.9%)
CIE-LABlab(5.69, 27.15, -33.75)
CIE-LCHlch(5.69, 43.32, 308.81°)
OKLaboklab(19.79% 0.0345 -0.0984)
OKLCHoklch(19.79% 0.104 289.3)
XYZxyz(1.3344, 0.6294, 4.9007)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180340 #2B4003
analogous
#030C40 #180340 #360340
triadic
#180340 #401803 #034018
tetradic
#180340 #40030C #2B4003 #034036
square
#180340 #40030C #2B4003 #034036
split-complementary
#180340 #403603 #0C4003
monochromatic
#0B011D #0B011D #180340 #2E067A #4408B5

Accessibility & contrast

On white

18.65
#180340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180340
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180340#FFFFFF#000000##FFFFFF
##1803401.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180340;
/* rgb */ color: rgb(24, 3, 64);
/* oklch */ color: oklch(19.8% 0.104 289.3);
Tailwind
colors: {
  custom: {
    50: '#5b4776',
    500: '#180340',
    950: '#000000',
  },
}
SCSS
$custom: #180340;
$custom-light: #5b4776;
$custom-dark: #000000;
JSON
{
  "hex": "#180340",
  "rgb": {
    "r": 24,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 260.656,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.19787,
    "c": 0.10432,
    "h": 289.3
  },
  "luminance": 0.00629
}

Semantic roles & 50–950 ramp

primary
#180340
secondary
#5F821D
accent
#FF29B5
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #180340

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

Preview Lab → · Contrast checker → · Palette generator →

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