#1E1787#1E1787

#1E1787 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.173 H 273.0°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#1E1787
RGBrgb(30, 23, 135)
HSLhsl(244, 71%, 31%)
HSVhsv(244, 83%, 53%)
CMYKcmyk(77.8%, 83%, 0%, 47.1%)
CIE-LABlab(18.53, 41.14, -59.84)
CIE-LCHlch(18.53, 72.62, 304.51°)
OKLaboklab(31.58% 0.0089 -0.1731)
OKLCHoklch(31.58% 0.173 273)
XYZxyz(5.2135, 2.6375, 23.1513)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1787 #808717
analogous
#174887 #1E1787 #561787
triadic
#1E1787 #871E17 #17871E
tetradic
#1E1787 #871748 #808717 #178756
square
#1E1787 #871748 #808717 #178756
split-complementary
#1E1787 #875617 #488717
monochromatic
#07051E #120E53 #1E1787 #2A20BB #453BDE

Accessibility & contrast

On white

13.75
#1E1787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1E1787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1787
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1787#FFFFFF#000000##FFFFFF
##1E17871.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328A
Deuteranopia (green-blind)
#002885
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1e1787;
/* rgb */ color: rgb(30, 23, 135);
/* oklch */ color: oklch(31.6% 0.173 273.0);
Tailwind
colors: {
  custom: {
    50: '#6e57ab',
    500: '#1e1787',
    950: '#000000',
  },
}
SCSS
$custom: #1e1787;
$custom-light: #6e57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1787",
  "rgb": {
    "r": 30,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 243.75,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31576,
    "c": 0.17335,
    "h": 273
  },
  "luminance": 0.02638
}

Semantic roles & 50–950 ramp

primary
#1E1787
secondary
#B3BB3F
accent
#EE3AE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1E1787

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

Preview Lab → · Contrast checker → · Palette generator →

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