#1F1D86#1F1D86

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

Color values

HEX#1F1D86
RGBrgb(31, 29, 134)
HSLhsl(241, 64%, 32%)
HSVhsv(241, 78%, 53%)
CMYKcmyk(76.9%, 78.4%, 0%, 47.5%)
CIE-LABlab(19.60, 37.64, -57.43)
CIE-LCHlch(19.60, 68.67, 303.24°)
OKLaboklab(32.31% 0.0082 -0.1662)
OKLCHoklch(32.31% 0.166 272.8)
XYZxyz(5.3061, 2.8907, 22.8280)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D86 #84861D
analogous
#1D5086 #1F1D86 #541D86
triadic
#1F1D86 #861F1D #1D861F
tetradic
#1F1D86 #861D50 #84861D #1D8654
square
#1F1D86 #861D50 #84861D #1D8654
split-complementary
#1F1D86 #86541D #50861D
monochromatic
#080721 #131254 #1F1D86 #2B28B8 #4946D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F1D86#FFFFFF#000000##FFFFFF
##1F1D861.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)
#003489
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f1d86;
/* rgb */ color: rgb(31, 29, 134);
/* oklch */ color: oklch(32.3% 0.166 272.8);
Tailwind
colors: {
  custom: {
    50: '#6d5baa',
    500: '#1f1d86',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d86;
$custom-light: #6d5baa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d86",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 241.143,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32308,
    "c": 0.16641,
    "h": 272.8
  },
  "luminance": 0.02891
}

Semantic roles & 50–950 ramp

primary
#1F1D86
secondary
#B7B946
accent
#E740E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1D86

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

Preview Lab → · Contrast checker → · Palette generator →

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