#1E0541#1E0541

#1E0541 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.103 H 294.9°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#1E0541
RGBrgb(30, 5, 65)
HSLhsl(265, 86%, 14%)
HSVhsv(265, 92%, 25%)
CMYKcmyk(53.8%, 92.3%, 0%, 74.5%)
CIE-LABlab(6.92, 27.82, -32.42)
CIE-LCHlch(6.92, 42.72, 310.64°)
OKLaboklab(21.01% 0.0432 -0.0933)
OKLCHoklch(21.01% 0.103 294.9)
XYZxyz(1.5436, 0.7662, 5.0666)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E0541 #284105
analogous
#050A41 #1E0541 #3C0541
triadic
#1E0541 #411E05 #05411E
tetradic
#1E0541 #41050A #284105 #05413C
square
#1E0541 #41050A #284105 #05413C
split-complementary
#1E0541 #413C05 #0A4105
monochromatic
#0D021C #0D021C #1E0541 #38097A #520EB3

Accessibility & contrast

On white

18.21
#1E0541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1E0541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E0541
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E0541#FFFFFF#000000##FFFFFF
##1E05411.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001643
Deuteranopia (green-blind)
#001440
Tritanopia (blue-blind)
#131623
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1e0541;
/* rgb */ color: rgb(30, 5, 65);
/* oklch */ color: oklch(21.0% 0.103 294.9);
Tailwind
colors: {
  custom: {
    50: '#5f4876',
    500: '#1e0541',
    950: '#000000',
  },
}
SCSS
$custom: #1e0541;
$custom-light: #5f4876;
$custom-dark: #000000;
JSON
{
  "hex": "#1e0541",
  "rgb": {
    "r": 30,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 265,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21011,
    "c": 0.10282,
    "h": 294.9
  },
  "luminance": 0.00766
}

Semantic roles & 50–950 ramp

primary
#1E0541
secondary
#598120
accent
#FC2CA5
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1E0541

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

Preview Lab → · Contrast checker → · Palette generator →

#1E0541 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva