#1E2877#1E2877

#1E2877 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.5% C 0.134 H 271.1°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#1E2877
RGBrgb(30, 40, 119)
HSLhsl(233, 60%, 29%)
HSVhsv(233, 75%, 47%)
CMYKcmyk(74.8%, 66.4%, 0%, 53.3%)
CIE-LABlab(20.54, 25.02, -46.38)
CIE-LCHlch(20.54, 52.70, 298.35°)
OKLaboklab(32.5% 0.0026 -0.134)
OKLCHoklch(32.5% 0.134 271.1)
XYZxyz(4.6229, 3.1250, 17.8087)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2877 #776D1E
analogous
#1E5577 #1E2877 #401E77
triadic
#1E2877 #771E28 #28771E
tetradic
#1E2877 #771E55 #776D1E #1E7740
square
#1E2877 #771E55 #776D1E #1E7740
split-complementary
#1E2877 #77401E #55771E
monochromatic
#060818 #121846 #1E2877 #2A38A8 #4050CF

Accessibility & contrast

On white

12.92
#1E2877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E2877
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2877#FFFFFF#000000##FFFFFF
##1E28771.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367A
Deuteranopia (green-blind)
#002D75
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1e2877;
/* rgb */ color: rgb(30, 40, 119);
/* oklch */ color: oklch(32.5% 0.134 271.1);
Tailwind
colors: {
  custom: {
    50: '#68629f',
    500: '#1e2877',
    950: '#000000',
  },
}
SCSS
$custom: #1e2877;
$custom-light: #68629f;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2877",
  "rgb": {
    "r": 30,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 233.258,
    "s": 59.732,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32497,
    "c": 0.13402,
    "h": 271.1
  },
  "luminance": 0.03126
}

Semantic roles & 50–950 ramp

primary
#1E2877
secondary
#AB9F46
accent
#D145E3
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #1E2877

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

Preview Lab → · Contrast checker → · Palette generator →

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