#1E2874#1E2874

#1E2874 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.2% C 0.130 H 271.2°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#1E2874
RGBrgb(30, 40, 116)
HSLhsl(233, 59%, 29%)
HSVhsv(233, 74%, 45%)
CMYKcmyk(74.1%, 65.5%, 0%, 54.5%)
CIE-LABlab(20.26, 23.86, -44.91)
CIE-LCHlch(20.26, 50.86, 297.98°)
OKLaboklab(32.21% 0.0028 -0.1297)
OKLCHoklch(32.21% 0.13 271.2)
XYZxyz(4.4455, 3.0541, 16.8748)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2874 #746A1E
analogous
#1E5374 #1E2874 #3F1E74
triadic
#1E2874 #741E28 #28741E
tetradic
#1E2874 #741E53 #746A1E #1E743F
square
#1E2874 #741E53 #746A1E #1E743F
split-complementary
#1E2874 #743F1E #53741E
monochromatic
#060818 #111743 #1E2874 #2B39A5 #3F50CD

Accessibility & contrast

On white

13.04
#1E2874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#1E2874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2874
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2874#FFFFFF#000000##FFFFFF
##1E28741.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003576
Deuteranopia (green-blind)
#002D73
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1e2874;
/* rgb */ color: rgb(30, 40, 116);
/* oklch */ color: oklch(32.2% 0.130 271.2);
Tailwind
colors: {
  custom: {
    50: '#67619d',
    500: '#1e2874',
    950: '#000000',
  },
}
SCSS
$custom: #1e2874;
$custom-light: #67619d;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2874",
  "rgb": {
    "r": 30,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 233.023,
    "s": 58.904,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32206,
    "c": 0.12972,
    "h": 271.2
  },
  "luminance": 0.03055
}

Semantic roles & 50–950 ramp

primary
#1E2874
secondary
#A89D46
accent
#D046E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1E2874

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

Preview Lab → · Contrast checker → · Palette generator →

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