#1E128F#1E128F

#1E128F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.187 H 272.5°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#1E128F
RGBrgb(30, 18, 143)
HSLhsl(246, 78%, 32%)
HSVhsv(246, 87%, 56%)
CMYKcmyk(79%, 87.4%, 0%, 43.9%)
CIE-LABlab(18.76, 45.97, -64.46)
CIE-LCHlch(18.76, 79.17, 305.49°)
OKLaboklab(32.03% 0.0081 -0.1864)
OKLCHoklch(32.03% 0.187 272.5)
XYZxyz(5.7080, 2.6912, 26.1999)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E128F #838F12
analogous
#12458F #1E128F #5D128F
triadic
#1E128F #8F1E12 #128F1E
tetradic
#1E128F #8F1245 #838F12 #128F5D
square
#1E128F #8F1245 #838F12 #128F5D
split-complementary
#1E128F #8F5D12 #458F12
monochromatic
#070422 #130B59 #1E128F #2919C5 #4736E6

Accessibility & contrast

On white

13.65
#1E128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1E128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E128F
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E128F#FFFFFF#000000##FFFFFF
##1E128F1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00278D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1e128f;
/* rgb */ color: rgb(30, 18, 143);
/* oklch */ color: oklch(32.0% 0.187 272.5);
Tailwind
colors: {
  custom: {
    50: '#7056b1',
    500: '#1e128f',
    950: '#000000',
  },
}
SCSS
$custom: #1e128f;
$custom-light: #7056b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1e128f",
  "rgb": {
    "r": 30,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 245.76,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32027,
    "c": 0.18659,
    "h": 272.5
  },
  "luminance": 0.02692
}

Semantic roles & 50–950 ramp

primary
#1E128F
secondary
#B6C33A
accent
#F434E2
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #1E128F

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

Preview Lab → · Contrast checker → · Palette generator →

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