#1E1580#1E1580

#1E1580 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.166 H 274.0°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#1E1580
RGBrgb(30, 21, 128)
HSLhsl(245, 72%, 29%)
HSVhsv(245, 84%, 50%)
CMYKcmyk(76.6%, 83.6%, 0%, 49.8%)
CIE-LABlab(17.32, 39.87, -57.41)
CIE-LCHlch(17.32, 69.90, 304.78°)
OKLaboklab(30.49% 0.0115 -0.1661)
OKLCHoklch(30.49% 0.166 274)
XYZxyz(4.6986, 2.3704, 20.6278)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1580 #778015
analogous
#154280 #1E1580 #541580
triadic
#1E1580 #801E15 #15801E
tetradic
#1E1580 #801542 #778015 #158054
square
#1E1580 #801542 #778015 #158054
split-complementary
#1E1580 #805415 #428015
monochromatic
#06041A #120C4B #1E1580 #2A1EB5 #4032DD

Accessibility & contrast

On white

14.25
#1E1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1E1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1580
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1580#FFFFFF#000000##FFFFFF
##1E15801.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00257E
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #1e1580;
/* rgb */ color: rgb(30, 21, 128);
/* oklch */ color: oklch(30.5% 0.166 274.0);
Tailwind
colors: {
  custom: {
    50: '#6c56a6',
    500: '#1e1580',
    950: '#000000',
  },
}
SCSS
$custom: #1e1580;
$custom-light: #6c56a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1580",
  "rgb": {
    "r": 30,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 245.047,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30488,
    "c": 0.16646,
    "h": 274
  },
  "luminance": 0.02371
}

Semantic roles & 50–950 ramp

primary
#1E1580
secondary
#ABB53C
accent
#EF39DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1E1580

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

Preview Lab → · Contrast checker → · Palette generator →

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