#1E127F#1E127F

#1E127F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 30.0% C 0.168 H 274.4°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#1E127F
RGBrgb(30, 18, 127)
HSLhsl(247, 75%, 28%)
HSVhsv(247, 86%, 50%)
CMYKcmyk(76.4%, 85.8%, 0%, 50.2%)
CIE-LABlab(16.70, 41.01, -57.81)
CIE-LCHlch(16.70, 70.88, 305.35°)
OKLaboklab(30.02% 0.0128 -0.1671)
OKLCHoklch(30.02% 0.168 274.4)
XYZxyz(4.5812, 2.2405, 20.2656)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E127F #737F12
analogous
#123C7F #1E127F #54127F
triadic
#1E127F #7F1E12 #127F1E
tetradic
#1E127F #7F123C #737F12 #127F54
square
#1E127F #7F123C #737F12 #127F54
split-complementary
#1E127F #7F5412 #3C7F12
monochromatic
#06041B #110A49 #1E127F #2B1AB5 #3F2BE1

Accessibility & contrast

On white

14.50
#1E127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#1E127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E127F
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E127F#FFFFFF#000000##FFFFFF
##1E127F1.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #1e127f;
/* rgb */ color: rgb(30, 18, 127);
/* oklch */ color: oklch(30.0% 0.168 274.4);
Tailwind
colors: {
  custom: {
    50: '#6c54a5',
    500: '#1e127f',
    950: '#000000',
  },
}
SCSS
$custom: #1e127f;
$custom-light: #6c54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1e127f",
  "rgb": {
    "r": 30,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 246.606,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30023,
    "c": 0.16764,
    "h": 274.4
  },
  "luminance": 0.02241
}

Semantic roles & 50–950 ramp

primary
#1E127F
secondary
#A7B538
accent
#F236DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1E127F

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

Preview Lab → · Contrast checker → · Palette generator →

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