#1E1578#1E1578

#1E1578 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.5% C 0.157 H 275.0°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#1E1578
RGBrgb(30, 21, 120)
HSLhsl(245, 70%, 28%)
HSVhsv(245, 83%, 47%)
CMYKcmyk(75%, 82.5%, 0%, 52.9%)
CIE-LABlab(16.35, 37.25, -53.92)
CIE-LCHlch(16.35, 65.54, 304.63°)
OKLaboklab(29.52% 0.0137 -0.1559)
OKLCHoklch(29.52% 0.157 275)
XYZxyz(4.1926, 2.1680, 17.9632)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1578 #6F7815
analogous
#153D78 #1E1578 #501578
triadic
#1E1578 #781E15 #15781E
tetradic
#1E1578 #78153D #6F7815 #157850
square
#1E1578 #78153D #6F7815 #157850
split-complementary
#1E1578 #785015 #3D7815
monochromatic
#07051A #110C44 #1E1578 #2B1EAC #3D2DDA

Accessibility & contrast

On white

14.65
#1E1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1E1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1578
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1578#FFFFFF#000000##FFFFFF
##1E15781.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002476
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1e1578;
/* rgb */ color: rgb(30, 21, 120);
/* oklch */ color: oklch(29.5% 0.157 275.0);
Tailwind
colors: {
  custom: {
    50: '#6a55a0',
    500: '#1e1578',
    950: '#000000',
  },
}
SCSS
$custom: #1e1578;
$custom-light: #6a55a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1578",
  "rgb": {
    "r": 30,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 245.455,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29524,
    "c": 0.15653,
    "h": 275
  },
  "luminance": 0.02168
}

Semantic roles & 50–950 ramp

primary
#1E1578
secondary
#A3AE3B
accent
#ED3BDD
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08030F
muted
#7A787F

Preview Lab

Preview with #1E1578

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

Preview Lab → · Contrast checker → · Palette generator →

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