#1E2271#1E2271

#1E2271 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.133 H 273.2°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#1E2271
RGBrgb(30, 34, 113)
HSLhsl(237, 58%, 28%)
HSVhsv(237, 73%, 44%)
CMYKcmyk(73.5%, 69.9%, 0%, 55.7%)
CIE-LABlab(18.42, 26.82, -46.00)
CIE-LCHlch(18.42, 53.25, 300.25°)
OKLaboklab(30.77% 0.0075 -0.1329)
OKLCHoklch(30.77% 0.133 273.2)
XYZxyz(4.0871, 2.6119, 15.9083)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E2271 #716D1E
analogous
#1E4C71 #1E2271 #431E71
triadic
#1E2271 #711E22 #22711E
tetradic
#1E2271 #711E4C #716D1E #1E7143
square
#1E2271 #711E4C #716D1E #1E7143
split-complementary
#1E2271 #71431E #4C711E
monochromatic
#060718 #111341 #1E2271 #2B31A1 #3E45CC

Accessibility & contrast

On white

13.79
#1E2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1E2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E2271
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E2271#FFFFFF#000000##FFFFFF
##1E22711.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1e2271;
/* rgb */ color: rgb(30, 34, 113);
/* oklch */ color: oklch(30.8% 0.133 273.2);
Tailwind
colors: {
  custom: {
    50: '#675d9b',
    500: '#1e2271',
    950: '#000000',
  },
}
SCSS
$custom: #1e2271;
$custom-light: #675d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1e2271",
  "rgb": {
    "r": 30,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 237.108,
    "s": 58.042,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30771,
    "c": 0.13312,
    "h": 273.2
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#1E2271
secondary
#A5A046
accent
#DA47E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1E2271

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

Preview Lab → · Contrast checker → · Palette generator →

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