#1E2978#1E2978

#1E2978 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.134 H 270.8°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#1E2978
RGBrgb(30, 41, 120)
HSLhsl(233, 60%, 29%)
HSVhsv(233, 75%, 47%)
CMYKcmyk(75%, 65.8%, 0%, 52.9%)
CIE-LABlab(20.89, 24.72, -46.43)
CIE-LCHlch(20.89, 52.60, 298.03°)
OKLaboklab(32.79% 0.0018 -0.1341)
OKLCHoklch(32.79% 0.134 270.8)
XYZxyz(4.7174, 3.2175, 18.1381)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2978 #786D1E
analogous
#1E5678 #1E2978 #401E78
triadic
#1E2978 #781E29 #29781E
tetradic
#1E2978 #781E56 #786D1E #1E7840
square
#1E2978 #781E56 #786D1E #1E7840
split-complementary
#1E2978 #78401E #56781E
monochromatic
#060818 #121847 #1E2978 #2A3AA9 #4152CF

Accessibility & contrast

On white

12.78
#1E2978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1E2978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2978
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2978#FFFFFF#000000##FFFFFF
##1E29781.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1e2978;
/* rgb */ color: rgb(30, 41, 120);
/* oklch */ color: oklch(32.8% 0.134 270.8);
Tailwind
colors: {
  custom: {
    50: '#6862a0',
    500: '#1e2978',
    950: '#000000',
  },
}
SCSS
$custom: #1e2978;
$custom-light: #6862a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2978",
  "rgb": {
    "r": 30,
    "g": 41,
    "b": 120
  },
  "hsl": {
    "h": 232.667,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32787,
    "c": 0.13415,
    "h": 270.8
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#1E2978
secondary
#AC9F46
accent
#D045E3
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1E2978

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

Preview Lab → · Contrast checker → · Palette generator →

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