#1E1878#1E1878

#1E1878 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.154 H 274.6°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#1E1878
RGBrgb(30, 24, 120)
HSLhsl(244, 67%, 28%)
HSVhsv(244, 80%, 47%)
CMYKcmyk(75%, 80%, 0%, 52.9%)
CIE-LABlab(16.92, 35.60, -52.98)
CIE-LCHlch(16.92, 63.83, 303.90°)
OKLaboklab(29.92% 0.0123 -0.1532)
OKLCHoklch(29.92% 0.154 274.6)
XYZxyz(4.2511, 2.2849, 17.9827)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1878 #727818
analogous
#184278 #1E1878 #4E1878
triadic
#1E1878 #781E18 #18781E
tetradic
#1E1878 #781842 #727818 #18784E
square
#1E1878 #781842 #727818 #18784E
split-complementary
#1E1878 #784E18 #427818
monochromatic
#06051A #110E45 #1E1878 #2B22AB #3E34D6

Accessibility & contrast

On white

14.41
#1E1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1E1878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1878
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1878#FFFFFF#000000##FFFFFF
##1E18781.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1e1878;
/* rgb */ color: rgb(30, 24, 120);
/* oklch */ color: oklch(29.9% 0.154 274.6);
Tailwind
colors: {
  custom: {
    50: '#6a57a0',
    500: '#1e1878',
    950: '#000000',
  },
}
SCSS
$custom: #1e1878;
$custom-light: #6a57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1878",
  "rgb": {
    "r": 30,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 243.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29924,
    "c": 0.15371,
    "h": 274.6
  },
  "luminance": 0.02285
}

Semantic roles & 50–950 ramp

primary
#1E1878
secondary
#A6AD3F
accent
#EA3EDF
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #1E1878

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

Preview Lab → · Contrast checker → · Palette generator →

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