#1E2C78#1E2C78

#1E2C78 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.130 H 269.8°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#1E2C78
RGBrgb(30, 44, 120)
HSLhsl(231, 60%, 29%)
HSVhsv(231, 75%, 47%)
CMYKcmyk(75%, 63.3%, 0%, 52.9%)
CIE-LABlab(21.70, 22.63, -45.12)
CIE-LCHlch(21.70, 50.48, 296.64°)
OKLaboklab(33.38% -0.0004 -0.1302)
OKLCHoklch(33.38% 0.13 269.8)
XYZxyz(4.8251, 3.4330, 18.1740)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2C78 #786A1E
analogous
#1E5978 #1E2C78 #3D1E78
triadic
#1E2C78 #781E2C #2C781E
tetradic
#1E2C78 #781E59 #786A1E #1E783D
square
#1E2C78 #781E59 #786A1E #1E783D
split-complementary
#1E2C78 #783D1E #59781E
monochromatic
#060918 #121A47 #1E2C78 #2A3EA9 #4157CF

Accessibility & contrast

On white

12.45
#1E2C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1E2C78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2C78
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2C78#FFFFFF#000000##FFFFFF
##1E2C781.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387A
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1e2c78;
/* rgb */ color: rgb(30, 44, 120);
/* oklch */ color: oklch(33.4% 0.130 269.8);
Tailwind
colors: {
  custom: {
    50: '#6865a0',
    500: '#1e2c78',
    950: '#000000',
  },
}
SCSS
$custom: #1e2c78;
$custom-light: #6865a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2c78",
  "rgb": {
    "r": 30,
    "g": 44,
    "b": 120
  },
  "hsl": {
    "h": 230.667,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33382,
    "c": 0.13025,
    "h": 269.8
  },
  "luminance": 0.03433
}

Semantic roles & 50–950 ramp

primary
#1E2C78
secondary
#AC9C46
accent
#CA45E3
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050F
muted
#7A7A7E

Preview Lab

Preview with #1E2C78

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

Preview Lab → · Contrast checker → · Palette generator →

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