#1E126E#1E126E

#1E126E is a dark, vivid blue. Relative luminance 0.018; OKLCH L 28.0% C 0.147 H 277.0°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#1E126E
RGBrgb(30, 18, 110)
HSLhsl(248, 72%, 25%)
HSVhsv(248, 84%, 43%)
CMYKcmyk(72.7%, 83.6%, 0%, 56.9%)
CIE-LABlab(14.59, 35.52, -50.35)
CIE-LCHlch(14.59, 61.62, 305.20°)
OKLaboklab(27.95% 0.0179 -0.1455)
OKLCHoklch(27.95% 0.147 277)
XYZxyz(3.5653, 1.8341, 14.9150)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E126E #626E12
analogous
#12346E #1E126E #4C126E
triadic
#1E126E #6E1E12 #126E1E
tetradic
#1E126E #6E1234 #626E12 #126E4C
square
#1E126E #6E1234 #626E12 #126E4C
split-complementary
#1E126E #6E4C12 #346E12
monochromatic
#07041A #100939 #1E126E #2C1BA3 #3B23D7

Accessibility & contrast

On white

15.36
#1E126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#1E126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E126E
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E126E#FFFFFF#000000##FFFFFF
##1E126E1.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002971
Deuteranopia (green-blind)
#00216C
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1e126e;
/* rgb */ color: rgb(30, 18, 110);
/* oklch */ color: oklch(28.0% 0.147 277.0);
Tailwind
colors: {
  custom: {
    50: '#685399',
    500: '#1e126e',
    950: '#000000',
  },
}
SCSS
$custom: #1e126e;
$custom-light: #685399;
$custom-dark: #000000;
JSON
{
  "hex": "#1e126e",
  "rgb": {
    "r": 30,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 247.826,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.2795,
    "c": 0.14662,
    "h": 277
  },
  "luminance": 0.01834
}

Semantic roles & 50–950 ramp

primary
#1E126E
secondary
#97A537
accent
#EF39D7
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1E126E

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

Preview Lab → · Contrast checker → · Palette generator →

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