#1E31A6#1E31A6

#1E31A6 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.9% C 0.186 H 268.1°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#1E31A6
RGBrgb(30, 49, 166)
HSLhsl(232, 69%, 38%)
HSVhsv(232, 82%, 65%)
CMYKcmyk(81.9%, 70.5%, 0%, 34.9%)
CIE-LABlab(27.37, 36.80, -64.33)
CIE-LCHlch(27.37, 74.11, 299.77°)
OKLaboklab(38.87% -0.0061 -0.1864)
OKLCHoklch(38.87% 0.186 268.1)
XYZxyz(8.5143, 5.2248, 36.6287)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E31A6 #A6931E
analogous
#1E75A6 #1E31A6 #4F1EA6
triadic
#1E31A6 #A61E31 #31A61E
tetradic
#1E31A6 #A61E75 #A6931E #1EA64F
square
#1E31A6 #A61E75 #A6931E #1EA64F
split-complementary
#1E31A6 #A64F1E #75A61E
monochromatic
#0B123E #152272 #1E31A6 #2941D8 #5D6FE2

Accessibility & contrast

On white

10.27
#1E31A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E31A6
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E31A6#FFFFFF#000000##FFFFFF
##1E31A61.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#005268
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1e31a6;
/* rgb */ color: rgb(30, 49, 166);
/* oklch */ color: oklch(38.9% 0.186 268.1);
Tailwind
colors: {
  custom: {
    50: '#7469c2',
    500: '#1e31a6',
    950: '#000000',
  },
}
SCSS
$custom: #1e31a6;
$custom-light: #7469c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1e31a6",
  "rgb": {
    "r": 30,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 231.618,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38872,
    "c": 0.18649,
    "h": 268.1
  },
  "luminance": 0.05226
}

Semantic roles & 50–950 ramp

primary
#1E31A6
secondary
#C6B75A
accent
#D43CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1E31A6

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

Preview Lab → · Contrast checker → · Palette generator →

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