#1E157E#1E157E

#1E157E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.164 H 274.2°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#1E157E
RGBrgb(30, 21, 126)
HSLhsl(245, 71%, 29%)
HSVhsv(245, 83%, 49%)
CMYKcmyk(76.2%, 83.3%, 0%, 50.6%)
CIE-LABlab(17.08, 39.22, -56.55)
CIE-LCHlch(17.08, 68.82, 304.74°)
OKLaboklab(30.25% 0.012 -0.1636)
OKLCHoklch(30.25% 0.164 274.2)
XYZxyz(4.5682, 2.3182, 19.9413)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E157E #757E15
analogous
#15417E #1E157E #53157E
triadic
#1E157E #7E1E15 #157E1E
tetradic
#1E157E #7E1541 #757E15 #157E53
square
#1E157E #7E1541 #757E15 #157E53
split-complementary
#1E157E #7E5315 #417E15
monochromatic
#06041A #120C4A #1E157E #2A1EB2 #4031DD

Accessibility & contrast

On white

14.35
#1E157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#1E157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E157E
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E157E#FFFFFF#000000##FFFFFF
##1E157E1.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #1e157e;
/* rgb */ color: rgb(30, 21, 126);
/* oklch */ color: oklch(30.2% 0.164 274.2);
Tailwind
colors: {
  custom: {
    50: '#6c56a5',
    500: '#1e157e',
    950: '#000000',
  },
}
SCSS
$custom: #1e157e;
$custom-light: #6c56a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1e157e",
  "rgb": {
    "r": 30,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 245.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30245,
    "c": 0.164,
    "h": 274.2
  },
  "luminance": 0.02319
}

Semantic roles & 50–950 ramp

primary
#1E157E
secondary
#A9B33C
accent
#EE3ADF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1E157E

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

Preview Lab → · Contrast checker → · Palette generator →

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