#1E1252#1E1252

#1E1252 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.8% C 0.109 H 283.6°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#1E1252
RGBrgb(30, 18, 82)
HSLhsl(251, 64%, 20%)
HSVhsv(251, 78%, 32%)
CMYKcmyk(63.4%, 78%, 0%, 67.8%)
CIE-LABlab(11.40, 25.98, -36.93)
CIE-LCHlch(11.40, 45.15, 305.13°)
OKLaboklab(24.75% 0.0257 -0.1064)
OKLCHoklch(24.75% 0.109 283.6)
XYZxyz(2.2742, 1.3177, 8.1155)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1252 #465212
analogous
#122652 #1E1252 #3E1252
triadic
#1E1252 #521E12 #12521E
tetradic
#1E1252 #521226 #465212 #12523E
square
#1E1252 #521226 #465212 #12523E
split-complementary
#1E1252 #523E12 #265212
monochromatic
#090619 #0C0720 #1E1252 #301D84 #4328B6

Accessibility & contrast

On white

16.62
#1E1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#1E1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1252
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1252#FFFFFF#000000##FFFFFF
##1E12521.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001C51
Tritanopia (blue-blind)
#022330
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #1e1252;
/* rgb */ color: rgb(30, 18, 82);
/* oklch */ color: oklch(24.8% 0.109 283.6);
Tailwind
colors: {
  custom: {
    50: '#615183',
    500: '#1e1252',
    950: '#000000',
  },
}
SCSS
$custom: #1e1252;
$custom-light: #615183;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1252",
  "rgb": {
    "r": 30,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 251.25,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24754,
    "c": 0.10941,
    "h": 283.6
  },
  "luminance": 0.01318
}

Semantic roles & 50–950 ramp

primary
#1E1252
secondary
#7B8B35
accent
#E741C8
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#05020B
muted
#7A787C

Preview Lab

Preview with #1E1252

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

Preview Lab → · Contrast checker → · Palette generator →

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