#1E0842#1E0842

#1E0842 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.6% C 0.100 H 293.3°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#1E0842
RGBrgb(30, 8, 66)
HSLhsl(263, 78%, 15%)
HSVhsv(263, 88%, 26%)
CMYKcmyk(54.5%, 87.9%, 0%, 74.1%)
CIE-LABlab(7.61, 26.50, -31.99)
CIE-LCHlch(7.61, 41.54, 309.63°)
OKLaboklab(21.56% 0.0397 -0.0918)
OKLCHoklch(21.56% 0.1 293.3)
XYZxyz(1.6053, 0.8430, 5.2313)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E0842 #2C4208
analogous
#080F42 #1E0842 #3B0842
triadic
#1E0842 #421E08 #08421E
tetradic
#1E0842 #42080F #2C4208 #08423B
square
#1E0842 #42080F #2C4208 #08423B
split-complementary
#1E0842 #423B08 #0F4208
monochromatic
#0C031B #0C031B #1E0842 #370F79 #5015AF

Accessibility & contrast

On white

17.97
#1E0842 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1E0842 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E0842
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E0842#FFFFFF#000000##FFFFFF
##1E08421.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#131825
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1e0842;
/* rgb */ color: rgb(30, 8, 66);
/* oklch */ color: oklch(21.6% 0.100 293.3);
Tailwind
colors: {
  custom: {
    50: '#5f4a77',
    500: '#1e0842',
    950: '#000000',
  },
}
SCSS
$custom: #1e0842;
$custom-light: #5f4a77;
$custom-dark: #000000;
JSON
{
  "hex": "#1e0842",
  "rgb": {
    "r": 30,
    "g": 8,
    "b": 66
  },
  "hsl": {
    "h": 262.759,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.21558,
    "c": 0.10004,
    "h": 293.3
  },
  "luminance": 0.00843
}

Semantic roles & 50–950 ramp

primary
#1E0842
secondary
#5E8025
accent
#F533AB
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1E0842

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

Preview Lab → · Contrast checker → · Palette generator →

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