#1E1796#1E1796

#1E1796 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.191 H 271.5°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#1E1796
RGBrgb(30, 23, 150)
HSLhsl(243, 73%, 34%)
HSVhsv(243, 85%, 59%)
CMYKcmyk(80%, 84.7%, 0%, 41.2%)
CIE-LABlab(20.40, 45.93, -66.08)
CIE-LCHlch(20.40, 80.48, 304.80°)
OKLaboklab(33.41% 0.0051 -0.1912)
OKLCHoklch(33.41% 0.191 271.5)
XYZxyz(6.3450, 3.0901, 29.1103)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1796 #8F9617
analogous
#175096 #1E1796 #5E1796
triadic
#1E1796 #961E17 #17961E
tetradic
#1E1796 #961750 #8F9617 #17965E
square
#1E1796 #961750 #8F9617 #17965E
split-complementary
#1E1796 #965E17 #509617
monochromatic
#09072C #130F61 #1E1796 #291FCB #4E45E2

Accessibility & contrast

On white

12.98
#1E1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1E1796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1796
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1796#FFFFFF#000000##FFFFFF
##1E17961.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003799
Deuteranopia (green-blind)
#002B94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1e1796;
/* rgb */ color: rgb(30, 23, 150);
/* oklch */ color: oklch(33.4% 0.191 271.5);
Tailwind
colors: {
  custom: {
    50: '#7259b6',
    500: '#1e1796',
    950: '#000000',
  },
}
SCSS
$custom: #1e1796;
$custom-light: #7259b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1796",
  "rgb": {
    "r": 30,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 243.307,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3341,
    "c": 0.19127,
    "h": 271.5
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

primary
#1E1796
secondary
#BCC345
accent
#F038E6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #1E1796

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

Preview Lab → · Contrast checker → · Palette generator →

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