#1E1887#1E1887

#1E1887 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.7% C 0.173 H 272.9°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#1E1887
RGBrgb(30, 24, 135)
HSLhsl(243, 70%, 31%)
HSVhsv(243, 82%, 53%)
CMYKcmyk(77.8%, 82.2%, 0%, 47.1%)
CIE-LABlab(18.71, 40.63, -59.55)
CIE-LCHlch(18.71, 72.09, 304.31°)
OKLaboklab(31.7% 0.0086 -0.1723)
OKLCHoklch(31.7% 0.173 272.9)
XYZxyz(5.2338, 2.6780, 23.1580)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1887 #818718
analogous
#184987 #1E1887 #551887
triadic
#1E1887 #871E18 #18871E
tetradic
#1E1887 #871849 #818718 #188755
square
#1E1887 #871849 #818718 #188755
split-complementary
#1E1887 #875518 #498718
monochromatic
#07061F #120F53 #1E1887 #2A21BB #463DDC

Accessibility & contrast

On white

13.67
#1E1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1E1887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1887
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1887#FFFFFF#000000##FFFFFF
##1E18871.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002885
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1e1887;
/* rgb */ color: rgb(30, 24, 135);
/* oklch */ color: oklch(31.7% 0.173 272.9);
Tailwind
colors: {
  custom: {
    50: '#6e58ab',
    500: '#1e1887',
    950: '#000000',
  },
}
SCSS
$custom: #1e1887;
$custom-light: #6e58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1887",
  "rgb": {
    "r": 30,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 243.243,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31698,
    "c": 0.17251,
    "h": 272.9
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

primary
#1E1887
secondary
#B4BB40
accent
#ED3BE3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1E1887

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

Preview Lab → · Contrast checker → · Palette generator →

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