#1F1D87#1F1D87

#1F1D87 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.168 H 272.7°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#1F1D87
RGBrgb(31, 29, 135)
HSLhsl(241, 65%, 32%)
HSVhsv(241, 79%, 53%)
CMYKcmyk(77%, 78.5%, 0%, 47.1%)
CIE-LABlab(19.72, 37.99, -57.87)
CIE-LCHlch(19.72, 69.23, 303.28°)
OKLaboklab(32.42% 0.008 -0.1675)
OKLCHoklch(32.42% 0.168 272.7)
XYZxyz(5.3761, 2.9187, 23.1970)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1D87 #85871D
analogous
#1D5087 #1F1D87 #541D87
triadic
#1F1D87 #871F1D #1D871F
tetradic
#1F1D87 #871D50 #85871D #1D8754
square
#1F1D87 #871D50 #85871D #1D8754
split-complementary
#1F1D87 #87541D #50871D
monochromatic
#080722 #131255 #1F1D87 #2B28B9 #4A47D7

Accessibility & contrast

On white

13.26
#1F1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F1D87
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1D87#FFFFFF#000000##FFFFFF
##1F1D871.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002A85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f1d87;
/* rgb */ color: rgb(31, 29, 135);
/* oklch */ color: oklch(32.4% 0.168 272.7);
Tailwind
colors: {
  custom: {
    50: '#6e5bab',
    500: '#1f1d87',
    950: '#000000',
  },
}
SCSS
$custom: #1f1d87;
$custom-light: #6e5bab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1d87",
  "rgb": {
    "r": 31,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 241.132,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.32423,
    "c": 0.16767,
    "h": 272.7
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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