#1E1F7D#1E1F7D

#1E1F7D is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.153 H 272.9°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#1E1F7D
RGBrgb(30, 31, 125)
HSLhsl(239, 61%, 30%)
HSVhsv(239, 76%, 49%)
CMYKcmyk(76%, 75.2%, 0%, 51%)
CIE-LABlab(18.95, 33.19, -52.81)
CIE-LCHlch(18.95, 62.37, 302.15°)
OKLaboklab(31.53% 0.0077 -0.1528)
OKLCHoklch(31.53% 0.153 272.9)
XYZxyz(4.7258, 2.7362, 19.6771)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E1F7D #7D7C1E
analogous
#1E4F7D #1E1F7D #4C1E7D
triadic
#1E1F7D #7D1E1F #1F7D1E
tetradic
#1E1F7D #7D1E4F #7D7C1E #1E7D4C
square
#1E1F7D #7D1E4F #7D7C1E #1E7D4C
split-complementary
#1E1F7D #7D4C1E #4F7D1E
monochromatic
#06071A #12134C #1E1F7D #2A2BAE #4345D2

Accessibility & contrast

On white

13.57
#1E1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1E1F7D
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E1F7D#FFFFFF#000000##FFFFFF
##1E1F7D1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00297B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1e1f7d;
/* rgb */ color: rgb(30, 31, 125);
/* oklch */ color: oklch(31.5% 0.153 272.9);
Tailwind
colors: {
  custom: {
    50: '#6a5ca4',
    500: '#1e1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #1e1f7d;
$custom-light: #6a5ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#1e1f7d",
  "rgb": {
    "r": 30,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 239.368,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31534,
    "c": 0.15298,
    "h": 272.9
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#1E1F7D
secondary
#B0AF46
accent
#E343E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1E1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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