#1E317F#1E317F

#1E317F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.134 H 268.2°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#1E317F
RGBrgb(30, 49, 127)
HSLhsl(228, 62%, 31%)
HSVhsv(228, 76%, 50%)
CMYKcmyk(76.4%, 61.4%, 0%, 50.2%)
CIE-LABlab(23.69, 21.90, -46.32)
CIE-LCHlch(23.69, 51.23, 295.31°)
OKLaboklab(35.05% -0.0043 -0.1337)
OKLCHoklch(35.05% 0.134 268.2)
XYZxyz(5.4632, 4.0044, 20.5596)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1E317F #7F6C1E
analogous
#1E617F #1E317F #3B1E7F
triadic
#1E317F #7F1E31 #317F1E
tetradic
#1E317F #7F1E61 #7F6C1E #1E7F3B
square
#1E317F #7F1E61 #7F6C1E #1E7F3B
split-complementary
#1E317F #7F3B1E #617F1E
monochromatic
#070B1C #121E4D #1E317F #2A44B1 #4460D3

Accessibility & contrast

On white

11.66
#1E317F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1E317F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1E317F
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1E317F#FFFFFF#000000##FFFFFF
##1E317F1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1e317f;
/* rgb */ color: rgb(30, 49, 127);
/* oklch */ color: oklch(35.0% 0.134 268.2);
Tailwind
colors: {
  custom: {
    50: '#6968a5',
    500: '#1e317f',
    950: '#000000',
  },
}
SCSS
$custom: #1e317f;
$custom-light: #6968a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1e317f",
  "rgb": {
    "r": 30,
    "g": 49,
    "b": 127
  },
  "hsl": {
    "h": 228.247,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35048,
    "c": 0.13377,
    "h": 268.2
  },
  "luminance": 0.04005
}

Semantic roles & 50–950 ramp

primary
#1E317F
secondary
#B29D47
accent
#C543E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1E317F

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

Preview Lab → · Contrast checker → · Palette generator →

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