#1E2781#1E2781

#1E2781 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.149 H 271.0°. Best body text is #FFFFFF at 12.63:1 contrast (WCAG AA passes).

Color values

HEX#1E2781
RGBrgb(30, 39, 129)
HSLhsl(235, 62%, 31%)
HSVhsv(235, 77%, 51%)
CMYKcmyk(76.7%, 69.8%, 0%, 49.4%)
CIE-LABlab(21.25, 29.52, -51.56)
CIE-LCHlch(21.25, 59.41, 299.79°)
OKLaboklab(33.31% 0.0025 -0.1492)
OKLCHoklch(33.31% 0.149 271)
XYZxyz(5.2220, 3.3115, 21.1286)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2781 #81781E
analogous
#1E5881 #1E2781 #461E81
triadic
#1E2781 #811E27 #27811E
tetradic
#1E2781 #811E58 #81781E #1E8146
square
#1E2781 #811E58 #81781E #1E8146
split-complementary
#1E2781 #81461E #58811E
monochromatic
#07091E #12184F #1E2781 #2A36B3 #4652D4

Accessibility & contrast

On white

12.63
#1E2781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1E2781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2781
12.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2781#FFFFFF#000000##FFFFFF
##1E27811.0012.631.6612.63
#FFFFFF12.631.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1e2781;
/* rgb */ color: rgb(30, 39, 129);
/* oklch */ color: oklch(33.3% 0.149 271.0);
Tailwind
colors: {
  custom: {
    50: '#6b61a7',
    500: '#1e2781',
    950: '#000000',
  },
}
SCSS
$custom: #1e2781;
$custom-light: #6b61a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2781",
  "rgb": {
    "r": 30,
    "g": 39,
    "b": 129
  },
  "hsl": {
    "h": 234.545,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33313,
    "c": 0.14919,
    "h": 271
  },
  "luminance": 0.03312
}

Semantic roles & 50–950 ramp

primary
#1E2781
secondary
#B4AA47
accent
#D742E5
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #1E2781

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

Preview Lab → · Contrast checker → · Palette generator →

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