#1E2878#1E2878

#1E2878 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.6% C 0.135 H 271.1°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#1E2878
RGBrgb(30, 40, 120)
HSLhsl(233, 60%, 29%)
HSVhsv(233, 75%, 47%)
CMYKcmyk(75%, 66.7%, 0%, 52.9%)
CIE-LABlab(20.63, 25.41, -46.86)
CIE-LCHlch(20.63, 53.31, 298.46°)
OKLaboklab(32.59% 0.0026 -0.1354)
OKLCHoklch(32.59% 0.135 271.1)
XYZxyz(4.6832, 3.1492, 18.1267)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2878 #786E1E
analogous
#1E5578 #1E2878 #411E78
triadic
#1E2878 #781E28 #28781E
tetradic
#1E2878 #781E55 #786E1E #1E7841
square
#1E2878 #781E55 #786E1E #1E7841
split-complementary
#1E2878 #78411E #55781E
monochromatic
#060818 #121847 #1E2878 #2A38A9 #4151CF

Accessibility & contrast

On white

12.88
#1E2878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1E2878 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2878
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2878#FFFFFF#000000##FFFFFF
##1E28781.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1e2878;
/* rgb */ color: rgb(30, 40, 120);
/* oklch */ color: oklch(32.6% 0.135 271.1);
Tailwind
colors: {
  custom: {
    50: '#6862a0',
    500: '#1e2878',
    950: '#000000',
  },
}
SCSS
$custom: #1e2878;
$custom-light: #6862a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2878",
  "rgb": {
    "r": 30,
    "g": 40,
    "b": 120
  },
  "hsl": {
    "h": 233.333,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32594,
    "c": 0.13543,
    "h": 271.1
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#1E2878
secondary
#ACA046
accent
#D245E3
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1E2878

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

Preview Lab → · Contrast checker → · Palette generator →

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