#1E31A7#1E31A7

#1E31A7 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.188 H 268.1°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#1E31A7
RGBrgb(30, 49, 167)
HSLhsl(232, 70%, 39%)
HSVhsv(232, 82%, 65%)
CMYKcmyk(82%, 70.7%, 0%, 34.5%)
CIE-LABlab(27.47, 37.17, -64.76)
CIE-LCHlch(27.47, 74.67, 299.85°)
OKLaboklab(38.98% -0.0062 -0.1877)
OKLCHoklch(38.98% 0.188 268.1)
XYZxyz(8.6064, 5.2616, 37.1137)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E31A7 #A7941E
analogous
#1E75A7 #1E31A7 #4F1EA7
triadic
#1E31A7 #A71E31 #31A71E
tetradic
#1E31A7 #A71E75 #A7941E #1EA74F
square
#1E31A7 #A71E75 #A7941E #1EA74F
split-complementary
#1E31A7 #A74F1E #75A71E
monochromatic
#0B133F #152273 #1E31A7 #2A42D9 #5D70E2

Accessibility & contrast

On white

10.23
#1E31A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1E31A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E31A7
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E31A7#FFFFFF#000000##FFFFFF
##1E31A71.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1e31a7;
/* rgb */ color: rgb(30, 49, 167);
/* oklch */ color: oklch(39.0% 0.188 268.1);
Tailwind
colors: {
  custom: {
    50: '#7469c2',
    500: '#1e31a7',
    950: '#000000',
  },
}
SCSS
$custom: #1e31a7;
$custom-light: #7469c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1e31a7",
  "rgb": {
    "r": 30,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 231.679,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38976,
    "c": 0.18776,
    "h": 268.1
  },
  "luminance": 0.05263
}

Semantic roles & 50–950 ramp

primary
#1E31A7
secondary
#C6B75B
accent
#D43BEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1E31A7

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

Preview Lab → · Contrast checker → · Palette generator →

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