#1E157F#1E157F

#1E157F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.4% C 0.165 H 274.1°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#1E157F
RGBrgb(30, 21, 127)
HSLhsl(245, 72%, 29%)
HSVhsv(245, 83%, 50%)
CMYKcmyk(76.4%, 83.5%, 0%, 50.2%)
CIE-LABlab(17.20, 39.55, -56.98)
CIE-LCHlch(17.20, 69.36, 304.76°)
OKLaboklab(30.37% 0.0118 -0.1648)
OKLCHoklch(30.37% 0.165 274.1)
XYZxyz(4.6331, 2.3442, 20.2829)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E157F #767F15
analogous
#15417F #1E157F #53157F
triadic
#1E157F #7F1E15 #157F1E
tetradic
#1E157F #7F1541 #767F15 #157F53
square
#1E157F #7F1541 #767F15 #157F53
split-complementary
#1E157F #7F5315 #417F15
monochromatic
#06041A #120C4A #1E157F #2A1EB4 #4031DD

Accessibility & contrast

On white

14.30
#1E157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#1E157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E157F
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E157F#FFFFFF#000000##FFFFFF
##1E157F1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1e157f;
/* rgb */ color: rgb(30, 21, 127);
/* oklch */ color: oklch(30.4% 0.165 274.1);
Tailwind
colors: {
  custom: {
    50: '#6c56a5',
    500: '#1e157f',
    950: '#000000',
  },
}
SCSS
$custom: #1e157f;
$custom-light: #6c56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1e157f",
  "rgb": {
    "r": 30,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 245.094,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30366,
    "c": 0.16523,
    "h": 274.1
  },
  "luminance": 0.02345
}

Semantic roles & 50–950 ramp

primary
#1E157F
secondary
#AAB43C
accent
#EE39DF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1E157F

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

Preview Lab → · Contrast checker → · Palette generator →

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