#1E128E#1E128E

#1E128E is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.9% C 0.185 H 272.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#1E128E
RGBrgb(30, 18, 142)
HSLhsl(246, 78%, 31%)
HSVhsv(246, 87%, 56%)
CMYKcmyk(78.9%, 87.3%, 0%, 44.3%)
CIE-LABlab(18.63, 45.66, -64.06)
CIE-LCHlch(18.63, 78.66, 305.48°)
OKLaboklab(31.9% 0.0084 -0.1852)
OKLCHoklch(31.9% 0.185 272.6)
XYZxyz(5.6326, 2.6610, 25.8027)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E128E #828E12
analogous
#12448E #1E128E #5C128E
triadic
#1E128E #8E1E12 #128E1E
tetradic
#1E128E #8E1244 #828E12 #128E5C
square
#1E128E #8E1244 #828E12 #128E5C
split-complementary
#1E128E #8E5C12 #448E12
monochromatic
#070421 #130B58 #1E128E #2919C4 #4635E5

Accessibility & contrast

On white

13.70
#1E128E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1E128E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E128E
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E128E#FFFFFF#000000##FFFFFF
##1E128E1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00278C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1e128e;
/* rgb */ color: rgb(30, 18, 142);
/* oklch */ color: oklch(31.9% 0.185 272.6);
Tailwind
colors: {
  custom: {
    50: '#7056b0',
    500: '#1e128e',
    950: '#000000',
  },
}
SCSS
$custom: #1e128e;
$custom-light: #7056b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1e128e",
  "rgb": {
    "r": 30,
    "g": 18,
    "b": 142
  },
  "hsl": {
    "h": 245.806,
    "s": 77.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.319,
    "c": 0.18543,
    "h": 272.6
  },
  "luminance": 0.02662
}

Semantic roles & 50–950 ramp

primary
#1E128E
secondary
#B5C23A
accent
#F434E1
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1E128E

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

Preview Lab → · Contrast checker → · Palette generator →

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