#1E0838#1E0838

#1E0838 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.087 H 299.5°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#1E0838
RGBrgb(30, 8, 56)
HSLhsl(268, 75%, 13%)
HSVhsv(268, 86%, 22%)
CMYKcmyk(46.4%, 85.7%, 0%, 78%)
CIE-LABlab(6.64, 23.07, -26.39)
CIE-LCHlch(6.64, 35.06, 311.16°)
OKLaboklab(20.5% 0.0428 -0.0758)
OKLCHoklch(20.5% 0.087 299.5)
XYZxyz(1.3359, 0.7352, 3.8121)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E0838 #223808
analogous
#080A38 #1E0838 #360838
triadic
#1E0838 #381E08 #08381E
tetradic
#1E0838 #38080A #223808 #083836
square
#1E0838 #38080A #223808 #083836
split-complementary
#1E0838 #383608 #0A3808
monochromatic
#0E041B #0E041B #1E0838 #3B106E #5717A3

Accessibility & contrast

On white

18.31
#1E0838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E0838
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E0838#FFFFFF#000000##FFFFFF
##1E08381.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001437
Tritanopia (blue-blind)
#18141F
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1e0838;
/* rgb */ color: rgb(30, 8, 56);
/* oklch */ color: oklch(20.5% 0.087 299.5);
Tailwind
colors: {
  custom: {
    50: '#5d4a6f',
    500: '#1e0838',
    950: '#000000',
  },
}
SCSS
$custom: #1e0838;
$custom-light: #5d4a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#1e0838",
  "rgb": {
    "r": 30,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 267.5,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.20497,
    "c": 0.08709,
    "h": 299.5
  },
  "luminance": 0.00735
}

Semantic roles & 50–950 ramp

primary
#1E0838
secondary
#517725
accent
#F2369C
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1E0838

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

Preview Lab → · Contrast checker → · Palette generator →

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