#1E042F#1E042F

#1E042F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.083 H 308.3°. Best body text is #FFFFFF at 18.86:1 contrast (WCAG AA passes).

Color values

HEX#1E042F
RGBrgb(30, 4, 47)
HSLhsl(276, 84%, 10%)
HSVhsv(276, 91%, 18%)
CMYKcmyk(36.2%, 91.5%, 0%, 81.6%)
CIE-LABlab(5.13, 21.73, -22.18)
CIE-LCHlch(5.13, 31.05, 314.41°)
OKLaboklab(18.91% 0.0514 -0.0652)
OKLCHoklch(18.91% 0.083 308.3)
XYZxyz(1.0918, 0.5681, 2.7409)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E042F #152F04
analogous
#08042F #1E042F #2F042B
triadic
#1E042F #2F1E04 #042F1E
tetradic
#1E042F #2F0804 #152F04 #042B2F
square
#1E042F #2F0804 #152F04 #042B2F
split-complementary
#1E042F #2B2F04 #042F08
monochromatic
#12021C #12021C #1E042F #420967 #660EA0

Accessibility & contrast

On white

18.86
#1E042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1E042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E042F
18.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E042F#FFFFFF#000000##FFFFFF
##1E042F1.0018.861.1118.86
#FFFFFF18.861.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#1B0E19
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1e042f;
/* rgb */ color: rgb(30, 4, 47);
/* oklch */ color: oklch(18.9% 0.083 308.3);
Tailwind
colors: {
  custom: {
    50: '#5b4868',
    500: '#1e042f',
    950: '#000000',
  },
}
SCSS
$custom: #1e042f;
$custom-light: #5b4868;
$custom-dark: #000000;
JSON
{
  "hex": "#1e042f",
  "rgb": {
    "r": 30,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 276.279,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.18913,
    "c": 0.08299,
    "h": 308.3
  },
  "luminance": 0.00568
}

Semantic roles & 50–950 ramp

primary
#1E042F
secondary
#3F721D
accent
#FB2D7E
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1E042F

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

Preview Lab → · Contrast checker → · Palette generator →

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