#1E1237#1E1237

#1E1237 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.1% C 0.069 H 295.1°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#1E1237
RGBrgb(30, 18, 55)
HSLhsl(259, 51%, 14%)
HSVhsv(259, 67%, 22%)
CMYKcmyk(45.5%, 67.3%, 0%, 78.4%)
CIE-LABlab(8.86, 16.59, -22.08)
CIE-LCHlch(8.86, 27.62, 306.93°)
OKLaboklab(22.13% 0.0294 -0.0627)
OKLCHoklch(22.13% 0.069 295.1)
XYZxyz(1.4411, 0.9844, 3.7278)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1237 #2B3712
analogous
#121937 #1E1237 #311237
triadic
#1E1237 #371E12 #12371E
tetradic
#1E1237 #371219 #2B3712 #123731
square
#1E1237 #371219 #2B3712 #123731
split-complementary
#1E1237 #373112 #193712
monochromatic
#0D0817 #0D0817 #1E1237 #372165 #503093

Accessibility & contrast

On white

17.55
#1E1237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#1E1237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1237
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1237#FFFFFF#000000##FFFFFF
##1E12371.0017.551.2017.55
#FFFFFF17.551.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021A38
Deuteranopia (green-blind)
#041936
Tritanopia (blue-blind)
#181A22
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1e1237;
/* rgb */ color: rgb(30, 18, 55);
/* oklch */ color: oklch(22.1% 0.069 295.1);
Tailwind
colors: {
  custom: {
    50: '#5c506e',
    500: '#1e1237',
    950: '#000000',
  },
}
SCSS
$custom: #1e1237;
$custom-light: #5c506e;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1237",
  "rgb": {
    "r": 30,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 259.459,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2213,
    "c": 0.06927,
    "h": 295.1
  },
  "luminance": 0.00984
}

Semantic roles & 50–950 ramp

primary
#1E1237
secondary
#5D7035
accent
#DA4EAD
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040207
muted
#79787A

Preview Lab

Preview with #1E1237

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

Preview Lab → · Contrast checker → · Palette generator →

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