#180346#180346

#180346 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.112 H 286.4°. Best body text is #FFFFFF at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#180346
RGBrgb(24, 3, 70)
HSLhsl(259, 92%, 14%)
HSVhsv(259, 96%, 27%)
CMYKcmyk(65.7%, 95.7%, 0%, 72.5%)
CIE-LABlab(6.34, 29.54, -36.95)
CIE-LCHlch(6.34, 47.31, 308.64°)
OKLaboklab(20.55% 0.0315 -0.1071)
OKLCHoklch(20.55% 0.112 286.4)
XYZxyz(1.5144, 0.7014, 5.8488)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180346 #314603
analogous
#031046 #180346 #3A0346
triadic
#180346 #461803 #034618
tetradic
#180346 #460310 #314603 #03463A
square
#180346 #460310 #314603 #03463A
split-complementary
#180346 #463A03 #104603
monochromatic
#0A011D #0A011D #180346 #2C0681 #4008BB

Accessibility & contrast

On white

18.41
#180346 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180346
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180346#FFFFFF#000000##FFFFFF
##1803461.0018.411.1418.41
#FFFFFF18.411.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001648
Deuteranopia (green-blind)
#001245
Tritanopia (blue-blind)
#011826
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180346;
/* rgb */ color: rgb(24, 3, 70);
/* oklch */ color: oklch(20.6% 0.112 286.4);
Tailwind
colors: {
  custom: {
    50: '#5d477a',
    500: '#180346',
    950: '#000000',
  },
}
SCSS
$custom: #180346;
$custom-light: #5d477a;
$custom-dark: #000000;
JSON
{
  "hex": "#180346",
  "rgb": {
    "r": 24,
    "g": 3,
    "b": 70
  },
  "hsl": {
    "h": 258.806,
    "s": 91.781,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20552,
    "c": 0.11163,
    "h": 286.4
  },
  "luminance": 0.00702
}

Semantic roles & 50–950 ramp

primary
#180346
secondary
#66871D
accent
#FF29BC
background
#F5F4F7
surface
#E9E6EE
border
#C5C2C9
text
#050009
muted
#79777B

Preview Lab

Preview with #180346

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

Preview Lab → · Contrast checker → · Palette generator →

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