#1E1F87#1E1F87

#1E1F87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.7% C 0.166 H 272.0°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#1E1F87
RGBrgb(30, 31, 135)
HSLhsl(239, 64%, 32%)
HSVhsv(239, 78%, 53%)
CMYKcmyk(77.8%, 77%, 0%, 47.1%)
CIE-LABlab(20.06, 36.74, -57.30)
CIE-LCHlch(20.06, 68.07, 302.67°)
OKLaboklab(32.65% 0.0059 -0.1659)
OKLCHoklch(32.65% 0.166 272)
XYZxyz(5.3971, 3.0047, 23.2125)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1F87 #87861E
analogous
#1E5387 #1E1F87 #521E87
triadic
#1E1F87 #871E1F #1F871E
tetradic
#1E1F87 #871E53 #87861E #1E8752
square
#1E1F87 #871E53 #87861E #1E8752
split-complementary
#1E1F87 #87521E #53871E
monochromatic
#080823 #131455 #1E1F87 #292AB9 #494AD7

Accessibility & contrast

On white

13.12
#1E1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1E1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1F87
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1F87#FFFFFF#000000##FFFFFF
##1E1F871.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1e1f87;
/* rgb */ color: rgb(30, 31, 135);
/* oklch */ color: oklch(32.7% 0.166 272.0);
Tailwind
colors: {
  custom: {
    50: '#6d5cab',
    500: '#1e1f87',
    950: '#000000',
  },
}
SCSS
$custom: #1e1f87;
$custom-light: #6d5cab;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1f87",
  "rgb": {
    "r": 30,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 239.429,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32652,
    "c": 0.16596,
    "h": 272
  },
  "luminance": 0.03005
}

Semantic roles & 50–950 ramp

primary
#1E1F87
secondary
#B9B848
accent
#E541E7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1E1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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