#1E0440#1E0440

#1E0440 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.7% C 0.103 H 295.8°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#1E0440
RGBrgb(30, 4, 64)
HSLhsl(266, 88%, 13%)
HSVhsv(266, 94%, 25%)
CMYKcmyk(53.1%, 93.8%, 0%, 74.9%)
CIE-LABlab(6.62, 28.02, -32.19)
CIE-LCHlch(6.62, 42.68, 311.04°)
OKLaboklab(20.75% 0.0448 -0.0928)
OKLCHoklch(20.75% 0.103 295.8)
XYZxyz(1.5040, 0.7330, 4.9117)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E0440 #264004
analogous
#040840 #1E0440 #3C0440
triadic
#1E0440 #401E04 #04401E
tetradic
#1E0440 #400408 #264004 #04403C
square
#1E0440 #400408 #264004 #04403C
split-complementary
#1E0440 #403C04 #084004
monochromatic
#0E021D #0E021D #1E0440 #39087A #540BB3

Accessibility & contrast

On white

18.32
#1E0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E0440
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E0440#FFFFFF#000000##FFFFFF
##1E04401.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1e0440;
/* rgb */ color: rgb(30, 4, 64);
/* oklch */ color: oklch(20.7% 0.103 295.8);
Tailwind
colors: {
  custom: {
    50: '#5f4875',
    500: '#1e0440',
    950: '#000000',
  },
}
SCSS
$custom: #1e0440;
$custom-light: #5f4875;
$custom-dark: #000000;
JSON
{
  "hex": "#1e0440",
  "rgb": {
    "r": 30,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 266,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20746,
    "c": 0.10305,
    "h": 295.8
  },
  "luminance": 0.00733
}

Semantic roles & 50–950 ramp

primary
#1E0440
secondary
#56811F
accent
#FE29A2
background
#F5F4F7
surface
#EAE6ED
border
#C6C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1E0440

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

Preview Lab → · Contrast checker → · Palette generator →

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