#1E138A#1E138A

#1E138A is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.180 H 273.0°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#1E138A
RGBrgb(30, 19, 138)
HSLhsl(246, 76%, 31%)
HSVhsv(246, 86%, 54%)
CMYKcmyk(78.3%, 86.2%, 0%, 45.9%)
CIE-LABlab(18.26, 44.00, -62.17)
CIE-LCHlch(18.26, 76.17, 305.29°)
OKLaboklab(31.5% 0.0093 -0.1798)
OKLCHoklch(31.5% 0.18 273)
XYZxyz(5.3542, 2.5762, 24.2549)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E138A #7F8A13
analogous
#13438A #1E138A #59138A
triadic
#1E138A #8A1E13 #138A1E
tetradic
#1E138A #8A1343 #7F8A13 #138A59
square
#1E138A #8A1343 #7F8A13 #138A59
split-complementary
#1E138A #8A5913 #438A13
monochromatic
#07041E #120C54 #1E138A #2A1AC0 #4434E3

Accessibility & contrast

On white

13.86
#1E138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1E138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E138A
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E138A#FFFFFF#000000##FFFFFF
##1E138A1.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002788
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1e138a;
/* rgb */ color: rgb(30, 19, 138);
/* oklch */ color: oklch(31.5% 0.180 273.0);
Tailwind
colors: {
  custom: {
    50: '#6f56ae',
    500: '#1e138a',
    950: '#000000',
  },
}
SCSS
$custom: #1e138a;
$custom-light: #6f56ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1e138a",
  "rgb": {
    "r": 30,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 245.546,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.31498,
    "c": 0.18004,
    "h": 273
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#1E138A
secondary
#B2BE3A
accent
#F235E1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1E138A

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

Preview Lab → · Contrast checker → · Palette generator →

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