#1E1246#1E1246

#1E1246 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.5% C 0.092 H 287.7°. Best body text is #FFFFFF at 17.07:1 contrast (WCAG AA passes).

Color values

HEX#1E1246
RGBrgb(30, 18, 70)
HSLhsl(254, 59%, 17%)
HSVhsv(254, 74%, 27%)
CMYKcmyk(57.1%, 74.3%, 0%, 72.5%)
CIE-LABlab(10.19, 21.78, -30.60)
CIE-LCHlch(10.19, 37.56, 305.44°)
OKLaboklab(23.52% 0.0281 -0.0878)
OKLCHoklch(23.52% 0.092 287.7)
XYZxyz(1.8569, 1.1507, 5.9174)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1246 #3A4612
analogous
#122046 #1E1246 #381246
triadic
#1E1246 #461E12 #12461E
tetradic
#1E1246 #461220 #3A4612 #124638
square
#1E1246 #461220 #3A4612 #124638
split-complementary
#1E1246 #463812 #204612
monochromatic
#0A0618 #0A0618 #1E1246 #331F77 #482BA7

Accessibility & contrast

On white

17.07
#1E1246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1E1246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1246
17.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1246#FFFFFF#000000##FFFFFF
##1E12461.0017.071.2317.07
#FFFFFF17.071.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D48
Deuteranopia (green-blind)
#001A45
Tritanopia (blue-blind)
#0F1F2A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1e1246;
/* rgb */ color: rgb(30, 18, 70);
/* oklch */ color: oklch(23.5% 0.092 287.7);
Tailwind
colors: {
  custom: {
    50: '#5f507a',
    500: '#1e1246',
    950: '#000000',
  },
}
SCSS
$custom: #1e1246;
$custom-light: #5f507a;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1246",
  "rgb": {
    "r": 30,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 253.846,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.23515,
    "c": 0.09217,
    "h": 287.7
  },
  "luminance": 0.01151
}

Semantic roles & 50–950 ramp

primary
#1E1246
secondary
#6E7F35
accent
#E246BE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050209
muted
#79787B

Preview Lab

Preview with #1E1246

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

Preview Lab → · Contrast checker → · Palette generator →

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