#1F1F86#1F1F86

#1F1F86 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.164 H 272.5°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#1F1F86
RGBrgb(31, 31, 134)
HSLhsl(240, 62%, 32%)
HSVhsv(240, 77%, 53%)
CMYKcmyk(76.9%, 76.9%, 0%, 47.5%)
CIE-LABlab(20.01, 36.48, -56.75)
CIE-LCHlch(20.01, 67.47, 302.73°)
OKLaboklab(32.6% 0.0073 -0.1642)
OKLCHoklch(32.6% 0.164 272.5)
XYZxyz(5.3567, 2.9919, 22.8448)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1F86 #86861F
analogous
#1F5386 #1F1F86 #531F86
triadic
#1F1F86 #861F1F #1F861F
tetradic
#1F1F86 #861F53 #86861F #1F8653
square
#1F1F86 #861F53 #86861F #1F8653
split-complementary
#1F1F86 #86531F #53861F
monochromatic
#080823 #141454 #1F1F86 #2A2AB8 #4A4AD5

Accessibility & contrast

On white

13.14
#1F1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1F1F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1F86
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1F86#FFFFFF#000000##FFFFFF
##1F1F861.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f1f86;
/* rgb */ color: rgb(31, 31, 134);
/* oklch */ color: oklch(32.6% 0.164 272.5);
Tailwind
colors: {
  custom: {
    50: '#6d5caa',
    500: '#1f1f86',
    950: '#000000',
  },
}
SCSS
$custom: #1f1f86;
$custom-light: #6d5caa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1f86",
  "rgb": {
    "r": 31,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 240,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.32599,
    "c": 0.16441,
    "h": 272.5
  },
  "luminance": 0.02993
}

Semantic roles & 50–950 ramp

primary
#1F1F86
secondary
#B8B849
accent
#E542E5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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