#1E0340#1E0340

#1E0340 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.105 H 296.1°. Best body text is #FFFFFF at 18.39:1 contrast (WCAG AA passes).

Color values

HEX#1E0340
RGBrgb(30, 3, 64)
HSLhsl(267, 91%, 13%)
HSVhsv(267, 95%, 25%)
CMYKcmyk(53.1%, 95.3%, 0%, 74.9%)
CIE-LABlab(6.43, 28.56, -32.51)
CIE-LCHlch(6.43, 43.28, 311.30°)
OKLaboklab(20.59% 0.046 -0.0938)
OKLCHoklch(20.59% 0.105 296.1)
XYZxyz(1.4931, 0.7113, 4.9081)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E0340 #254003
analogous
#030740 #1E0340 #3C0340
triadic
#1E0340 #401E03 #03401E
tetradic
#1E0340 #400307 #254003 #03403C
square
#1E0340 #400307 #254003 #03403C
split-complementary
#1E0340 #403C03 #074003
monochromatic
#0E011D #0E011D #1E0340 #39067A #5508B5

Accessibility & contrast

On white

18.39
#1E0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1E0340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E0340
18.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E0340#FFFFFF#000000##FFFFFF
##1E03401.0018.391.1418.39
#FFFFFF18.391.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#141522
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1e0340;
/* rgb */ color: rgb(30, 3, 64);
/* oklch */ color: oklch(20.6% 0.105 296.1);
Tailwind
colors: {
  custom: {
    50: '#5f4775',
    500: '#1e0340',
    950: '#000000',
  },
}
SCSS
$custom: #1e0340;
$custom-light: #5f4775;
$custom-dark: #000000;
JSON
{
  "hex": "#1e0340",
  "rgb": {
    "r": 30,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 266.557,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20592,
    "c": 0.10452,
    "h": 296.1
  },
  "luminance": 0.00711
}

Semantic roles & 50–950 ramp

primary
#1E0340
secondary
#55821D
accent
#FF29A0
background
#F5F4F7
surface
#EAE6ED
border
#C6C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1E0340

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

Preview Lab → · Contrast checker → · Palette generator →

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