#1E127C#1E127C

#1E127C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.7% C 0.164 H 274.8°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#1E127C
RGBrgb(30, 18, 124)
HSLhsl(247, 75%, 28%)
HSVhsv(247, 85%, 49%)
CMYKcmyk(75.8%, 85.5%, 0%, 51.4%)
CIE-LABlab(16.32, 40.06, -56.52)
CIE-LCHlch(16.32, 69.28, 305.32°)
OKLaboklab(29.65% 0.0137 -0.1634)
OKLCHoklch(29.65% 0.164 274.8)
XYZxyz(4.3886, 2.1634, 19.2512)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E127C #707C12
analogous
#123B7C #1E127C #53127C
triadic
#1E127C #7C1E12 #127C1E
tetradic
#1E127C #7C123B #707C12 #127C53
square
#1E127C #7C123B #707C12 #127C53
split-complementary
#1E127C #7C5312 #3B7C12
monochromatic
#06041B #110A47 #1E127C #2B1AB1 #3D29E0

Accessibility & contrast

On white

14.66
#1E127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1E127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E127C
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E127C#FFFFFF#000000##FFFFFF
##1E127C1.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00247A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1e127c;
/* rgb */ color: rgb(30, 18, 124);
/* oklch */ color: oklch(29.7% 0.164 274.8);
Tailwind
colors: {
  custom: {
    50: '#6c54a3',
    500: '#1e127c',
    950: '#000000',
  },
}
SCSS
$custom: #1e127c;
$custom-light: #6c54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1e127c",
  "rgb": {
    "r": 30,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 246.792,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29652,
    "c": 0.16399,
    "h": 274.8
  },
  "luminance": 0.02164
}

Semantic roles & 50–950 ramp

primary
#1E127C
secondary
#A4B238
accent
#F137DC
background
#F7F5FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #1E127C

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

Preview Lab → · Contrast checker → · Palette generator →

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