#1E1F7E#1E1F7E

#1E1F7E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.154 H 272.8°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#1E1F7E
RGBrgb(30, 31, 126)
HSLhsl(239, 62%, 31%)
HSVhsv(239, 76%, 49%)
CMYKcmyk(76.2%, 75.4%, 0%, 50.6%)
CIE-LABlab(19.06, 33.55, -53.26)
CIE-LCHlch(19.06, 62.95, 302.21°)
OKLaboklab(31.65% 0.0075 -0.1541)
OKLCHoklch(31.65% 0.154 272.8)
XYZxyz(4.7900, 2.7619, 20.0153)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1F7E #7E7D1E
analogous
#1E4F7E #1E1F7E #4D1E7E
triadic
#1E1F7E #7E1E1F #1F7E1E
tetradic
#1E1F7E #7E1E4F #7E7D1E #1E7E4D
square
#1E1F7E #7E1E4F #7E7D1E #1E7E4D
split-complementary
#1E1F7E #7E4D1E #4F7E1E
monochromatic
#06071B #12134D #1E1F7E #2A2BAF #4445D2

Accessibility & contrast

On white

13.53
#1E1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1E1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E1F7E
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1F7E#FFFFFF#000000##FFFFFF
##1E1F7E1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1e1f7e;
/* rgb */ color: rgb(30, 31, 126);
/* oklch */ color: oklch(31.6% 0.154 272.8);
Tailwind
colors: {
  custom: {
    50: '#6b5ca4',
    500: '#1e1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #1e1f7e;
$custom-light: #6b5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1f7e",
  "rgb": {
    "r": 30,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 239.375,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.31645,
    "c": 0.1543,
    "h": 272.8
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#1E1F7E
secondary
#B1B047
accent
#E343E5
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1E1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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