#1E2C81#1E2C81

#1E2C81 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.143 H 269.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#1E2C81
RGBrgb(30, 44, 129)
HSLhsl(232, 62%, 31%)
HSVhsv(232, 77%, 51%)
CMYKcmyk(76.7%, 65.9%, 0%, 49.4%)
CIE-LABlab(22.52, 26.15, -49.48)
CIE-LCHlch(22.52, 55.96, 297.85°)
OKLaboklab(34.24% -0.0007 -0.143)
OKLCHoklch(34.24% 0.143 269.7)
XYZxyz(5.3972, 3.6618, 21.1870)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2C81 #81731E
analogous
#1E5D81 #1E2C81 #411E81
triadic
#1E2C81 #811E2C #2C811E
tetradic
#1E2C81 #811E5D #81731E #1E8141
square
#1E2C81 #811E5D #81731E #1E8141
split-complementary
#1E2C81 #81411E #5D811E
monochromatic
#070A1E #121B4F #1E2C81 #2A3DB3 #465AD4

Accessibility & contrast

On white

12.12
#1E2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1E2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2C81
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2C81#FFFFFF#000000##FFFFFF
##1E2C811.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1e2c81;
/* rgb */ color: rgb(30, 44, 129);
/* oklch */ color: oklch(34.2% 0.143 269.7);
Tailwind
colors: {
  custom: {
    50: '#6a65a6',
    500: '#1e2c81',
    950: '#000000',
  },
}
SCSS
$custom: #1e2c81;
$custom-light: #6a65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2c81",
  "rgb": {
    "r": 30,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 231.515,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34241,
    "c": 0.14304,
    "h": 269.7
  },
  "luminance": 0.03662
}

Semantic roles & 50–950 ramp

primary
#1E2C81
secondary
#B4A547
accent
#CE42E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1E2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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