#1E31A8#1E31A8

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

Color values

HEX#1E31A8
RGBrgb(30, 49, 168)
HSLhsl(232, 70%, 39%)
HSVhsv(232, 82%, 66%)
CMYKcmyk(82.1%, 70.8%, 0%, 34.1%)
CIE-LABlab(27.57, 37.53, -65.20)
CIE-LCHlch(27.57, 75.23, 299.93°)
OKLaboklab(39.08% -0.0063 -0.1889)
OKLCHoklch(39.08% 0.189 268.1)
XYZxyz(8.6992, 5.2988, 37.6025)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E31A8 #A8951E
analogous
#1E76A8 #1E31A8 #501EA8
triadic
#1E31A8 #A81E31 #31A81E
tetradic
#1E31A8 #A81E76 #A8951E #1EA850
square
#1E31A8 #A81E76 #A8951E #1EA850
split-complementary
#1E31A8 #A8501E #76A81E
monochromatic
#0B1340 #152274 #1E31A8 #2A42D9 #5E70E2

Accessibility & contrast

On white

10.19
#1E31A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#1E31A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E31A8
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E31A8#FFFFFF#000000##FFFFFF
##1E31A81.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#005269
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1e31a8;
/* rgb */ color: rgb(30, 49, 168);
/* oklch */ color: oklch(39.1% 0.189 268.1);
Tailwind
colors: {
  custom: {
    50: '#7469c3',
    500: '#1e31a8',
    950: '#000000',
  },
}
SCSS
$custom: #1e31a8;
$custom-light: #7469c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1e31a8",
  "rgb": {
    "r": 30,
    "g": 49,
    "b": 168
  },
  "hsl": {
    "h": 231.739,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3908,
    "c": 0.18903,
    "h": 268.1
  },
  "luminance": 0.053
}

Semantic roles & 50–950 ramp

primary
#1E31A8
secondary
#C7B85B
accent
#D43BED
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1E31A8

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

Preview Lab → · Contrast checker → · Palette generator →

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