#1E0840#1E0840

#1E0840 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.3% C 0.097 H 294.5°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#1E0840
RGBrgb(30, 8, 64)
HSLhsl(264, 78%, 14%)
HSVhsv(264, 88%, 25%)
CMYKcmyk(53.1%, 87.5%, 0%, 74.9%)
CIE-LABlab(7.41, 25.84, -30.91)
CIE-LCHlch(7.41, 40.29, 309.89°)
OKLaboklab(21.34% 0.0403 -0.0887)
OKLCHoklch(21.34% 0.097 294.5)
XYZxyz(1.5474, 0.8198, 4.9262)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E0840 #2A4008
analogous
#080E40 #1E0840 #3A0840
triadic
#1E0840 #401E08 #08401E
tetradic
#1E0840 #40080E #2A4008 #08403A
square
#1E0840 #40080E #2A4008 #08403A
split-complementary
#1E0840 #403A08 #0E4008
monochromatic
#0D031B #0D031B #1E0840 #370F76 #5116AD

Accessibility & contrast

On white

18.04
#1E0840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1E0840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E0840
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E0840#FFFFFF#000000##FFFFFF
##1E08401.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#141724
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1e0840;
/* rgb */ color: rgb(30, 8, 64);
/* oklch */ color: oklch(21.3% 0.097 294.5);
Tailwind
colors: {
  custom: {
    50: '#5e4a75',
    500: '#1e0840',
    950: '#000000',
  },
}
SCSS
$custom: #1e0840;
$custom-light: #5e4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#1e0840",
  "rgb": {
    "r": 30,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 263.571,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.21339,
    "c": 0.09747,
    "h": 294.5
  },
  "luminance": 0.0082
}

Semantic roles & 50–950 ramp

primary
#1E0840
secondary
#5B7E25
accent
#F434A9
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1E0840

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

Preview Lab → · Contrast checker → · Palette generator →

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