#1E1987#1E1987

#1E1987 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.172 H 272.8°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#1E1987
RGBrgb(30, 25, 135)
HSLhsl(243, 69%, 31%)
HSVhsv(243, 81%, 53%)
CMYKcmyk(77.8%, 81.5%, 0%, 47.1%)
CIE-LABlab(18.89, 40.11, -59.25)
CIE-LCHlch(18.89, 71.55, 304.10°)
OKLaboklab(31.82% 0.0083 -0.1714)
OKLCHoklch(31.82% 0.172 272.8)
XYZxyz(5.2548, 2.7200, 23.1650)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1987 #828719
analogous
#194B87 #1E1987 #551987
triadic
#1E1987 #871E19 #19871E
tetradic
#1E1987 #87194B #828719 #198755
square
#1E1987 #87194B #828719 #198755
split-complementary
#1E1987 #875519 #4B8719
monochromatic
#070620 #130F53 #1E1987 #2923BB #463FDB

Accessibility & contrast

On white

13.60
#1E1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E1987
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1987#FFFFFF#000000##FFFFFF
##1E19871.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.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: #1e1987;
/* rgb */ color: rgb(30, 25, 135);
/* oklch */ color: oklch(31.8% 0.172 272.8);
Tailwind
colors: {
  custom: {
    50: '#6e58ab',
    500: '#1e1987',
    950: '#000000',
  },
}
SCSS
$custom: #1e1987;
$custom-light: #6e58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1987",
  "rgb": {
    "r": 30,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 242.727,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31824,
    "c": 0.17164,
    "h": 272.8
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#1E1987
secondary
#B5BA41
accent
#EC3CE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1E1987

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

Preview Lab → · Contrast checker → · Palette generator →

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