#1E0540#1E0540

#1E0540 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.102 H 295.5°. Best body text is #FFFFFF at 18.25:1 contrast (WCAG AA passes).

Color values

HEX#1E0540
RGBrgb(30, 5, 64)
HSLhsl(265, 86%, 14%)
HSVhsv(265, 92%, 25%)
CMYKcmyk(53.1%, 92.2%, 0%, 74.9%)
CIE-LABlab(6.82, 27.48, -31.87)
CIE-LCHlch(6.82, 42.08, 310.77°)
OKLaboklab(20.9% 0.0437 -0.0917)
OKLCHoklch(20.9% 0.102 295.5)
XYZxyz(1.5149, 0.7547, 4.9153)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E0540 #274005
analogous
#050940 #1E0540 #3B0540
triadic
#1E0540 #401E05 #05401E
tetradic
#1E0540 #400509 #274005 #05403B
square
#1E0540 #400509 #274005 #05403B
split-complementary
#1E0540 #403B05 #094005
monochromatic
#0D021C #0D021C #1E0540 #390979 #530EB2

Accessibility & contrast

On white

18.25
#1E0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E0540
18.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E0540#FFFFFF#000000##FFFFFF
##1E05401.0018.251.1518.25
#FFFFFF18.251.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#141623
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1e0540;
/* rgb */ color: rgb(30, 5, 64);
/* oklch */ color: oklch(20.9% 0.102 295.5);
Tailwind
colors: {
  custom: {
    50: '#5f4875',
    500: '#1e0540',
    950: '#000000',
  },
}
SCSS
$custom: #1e0540;
$custom-light: #5f4875;
$custom-dark: #000000;
JSON
{
  "hex": "#1e0540",
  "rgb": {
    "r": 30,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 265.424,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.20897,
    "c": 0.10161,
    "h": 295.5
  },
  "luminance": 0.00755
}

Semantic roles & 50–950 ramp

primary
#1E0540
secondary
#588120
accent
#FC2CA4
background
#F5F4F7
surface
#EAE6ED
border
#C6C2C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1E0540

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

Preview Lab → · Contrast checker → · Palette generator →

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