#1E1271#1E1271

#1E1271 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.150 H 276.5°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#1E1271
RGBrgb(30, 18, 113)
HSLhsl(248, 73%, 26%)
HSVhsv(248, 84%, 44%)
CMYKcmyk(73.5%, 84.1%, 0%, 55.7%)
CIE-LABlab(14.96, 36.50, -51.70)
CIE-LCHlch(14.96, 63.29, 305.22°)
OKLaboklab(28.31% 0.017 -0.1494)
OKLCHoklch(28.31% 0.15 276.5)
XYZxyz(3.7314, 1.9005, 15.7898)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1271 #657112
analogous
#123571 #1E1271 #4D1271
triadic
#1E1271 #711E12 #12711E
tetradic
#1E1271 #711235 #657112 #12714D
square
#1E1271 #711235 #657112 #12714D
split-complementary
#1E1271 #714D12 #357112
monochromatic
#07041A #100A3C #1E1271 #2C1AA6 #3A23DB

Accessibility & contrast

On white

15.22
#1E1271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1E1271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1271
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1271#FFFFFF#000000##FFFFFF
##1E12711.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002974
Deuteranopia (green-blind)
#00216F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1e1271;
/* rgb */ color: rgb(30, 18, 113);
/* oklch */ color: oklch(28.3% 0.150 276.5);
Tailwind
colors: {
  custom: {
    50: '#69539b',
    500: '#1e1271',
    950: '#000000',
  },
}
SCSS
$custom: #1e1271;
$custom-light: #69539b;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1271",
  "rgb": {
    "r": 30,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 247.579,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2831,
    "c": 0.15039,
    "h": 276.5
  },
  "luminance": 0.01901
}

Semantic roles & 50–950 ramp

primary
#1E1271
secondary
#9AA837
accent
#EF39D8
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1E1271

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

Preview Lab → · Contrast checker → · Palette generator →

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