#1F1E84#1F1E84

#1F1E84 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.163 H 272.9°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#1F1E84
RGBrgb(31, 30, 132)
HSLhsl(241, 63%, 32%)
HSVhsv(241, 77%, 52%)
CMYKcmyk(76.5%, 77.3%, 0%, 48.2%)
CIE-LABlab(19.58, 36.37, -56.21)
CIE-LCHlch(19.58, 66.95, 302.90°)
OKLaboklab(32.23% 0.0081 -0.1627)
OKLCHoklch(32.23% 0.163 272.9)
XYZxyz(5.1928, 2.8853, 22.1086)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1E84 #83841E
analogous
#1E5084 #1F1E84 #521E84
triadic
#1F1E84 #841F1E #1E841F
tetradic
#1F1E84 #841E50 #83841E #1E8452
square
#1F1E84 #841E50 #83841E #1E8452
split-complementary
#1F1E84 #84521E #50841E
monochromatic
#080720 #131352 #1F1E84 #2B29B6 #4947D5

Accessibility & contrast

On white

13.31
#1F1E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F1E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1E84
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1E84#FFFFFF#000000##FFFFFF
##1F1E841.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f1e84;
/* rgb */ color: rgb(31, 30, 132);
/* oklch */ color: oklch(32.2% 0.163 272.9);
Tailwind
colors: {
  custom: {
    50: '#6d5ba9',
    500: '#1f1e84',
    950: '#000000',
  },
}
SCSS
$custom: #1f1e84;
$custom-light: #6d5ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1e84",
  "rgb": {
    "r": 31,
    "g": 30,
    "b": 132
  },
  "hsl": {
    "h": 240.588,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32225,
    "c": 0.16286,
    "h": 272.9
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#1F1E84
secondary
#B6B747
accent
#E642E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1E84

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

Preview Lab → · Contrast checker → · Palette generator →

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