#180341#180341

#180341 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.9% C 0.106 H 288.8°. Best body text is #FFFFFF at 18.61:1 contrast (WCAG AA passes).

Color values

HEX#180341
RGBrgb(24, 3, 65)
HSLhsl(260, 91%, 13%)
HSVhsv(260, 95%, 25%)
CMYKcmyk(63.1%, 95.4%, 0%, 74.5%)
CIE-LABlab(5.79, 27.56, -34.30)
CIE-LCHlch(5.79, 44.00, 308.78°)
OKLaboklab(19.91% 0.034 -0.0999)
OKLCHoklch(19.91% 0.106 288.8)
XYZxyz(1.3631, 0.6409, 5.0519)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180341 #2C4103
analogous
#030D41 #180341 #370341
triadic
#180341 #411803 #034118
tetradic
#180341 #41030D #2C4103 #034137
square
#180341 #41030D #2C4103 #034137
split-complementary
#180341 #413703 #0D4103
monochromatic
#0B011D #0B011D #180341 #2E067B #4308B6

Accessibility & contrast

On white

18.61
#180341 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180341
18.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180341#FFFFFF#000000##FFFFFF
##1803411.0018.611.1318.61
#FFFFFF18.611.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001443
Deuteranopia (green-blind)
#001140
Tritanopia (blue-blind)
#061623
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180341;
/* rgb */ color: rgb(24, 3, 65);
/* oklch */ color: oklch(19.9% 0.106 288.8);
Tailwind
colors: {
  custom: {
    50: '#5b4776',
    500: '#180341',
    950: '#000000',
  },
}
SCSS
$custom: #180341;
$custom-light: #5b4776;
$custom-dark: #000000;
JSON
{
  "hex": "#180341",
  "rgb": {
    "r": 24,
    "g": 3,
    "b": 65
  },
  "hsl": {
    "h": 260.323,
    "s": 91.176,
    "l": 13.333
  },
  "oklch": {
    "l": 0.19913,
    "c": 0.10554,
    "h": 288.8
  },
  "luminance": 0.00641
}

Semantic roles & 50–950 ramp

primary
#180341
secondary
#60831D
accent
#FF29B6
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #180341

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

Preview Lab → · Contrast checker → · Palette generator →

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