#1E51A5#1E51A5

#1E51A5 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.146 H 260.0°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#1E51A5
RGBrgb(30, 81, 165)
HSLhsl(217, 69%, 38%)
HSVhsv(217, 82%, 65%)
CMYKcmyk(81.8%, 50.9%, 0%, 35.3%)
CIE-LABlab(35.74, 15.09, -50.05)
CIE-LCHlch(35.74, 52.27, 286.77°)
OKLaboklab(45.1% -0.0254 -0.1441)
OKLCHoklch(45.1% 0.146 260)
XYZxyz(10.2669, 8.8763, 36.7622)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E51A5 #A5721E
analogous
#1E94A5 #1E51A5 #2E1EA5
triadic
#1E51A5 #A51E51 #51A51E
tetradic
#1E51A5 #A51E94 #A5721E #1EA52E
square
#1E51A5 #A51E94 #A5721E #1EA52E
split-complementary
#1E51A5 #A52E1E #94A51E
monochromatic
#0B1E3D #153871 #1E51A5 #286BD8 #5C8EE1

Accessibility & contrast

On white

7.57
#1E51A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#1E51A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E51A5
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E51A5#FFFFFF#000000##FFFFFF
##1E51A51.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5BA8
Deuteranopia (green-blind)
#004EA3
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1e51a5;
/* rgb */ color: rgb(30, 81, 165);
/* oklch */ color: oklch(45.1% 0.146 260.0);
Tailwind
colors: {
  custom: {
    50: '#7181c0',
    500: '#1e51a5',
    950: '#000000',
  },
}
SCSS
$custom: #1e51a5;
$custom-light: #7181c0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e51a5",
  "rgb": {
    "r": 30,
    "g": 81,
    "b": 165
  },
  "hsl": {
    "h": 217.333,
    "s": 69.231,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45099,
    "c": 0.14632,
    "h": 260
  },
  "luminance": 0.08877
}

Semantic roles & 50–950 ramp

primary
#1E51A5
secondary
#C59D59
accent
#A93CEC
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1E51A5

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

Preview Lab → · Contrast checker → · Palette generator →

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