#1F1C86#1F1C86

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

Color values

HEX#1F1C86
RGBrgb(31, 28, 134)
HSLhsl(242, 65%, 32%)
HSVhsv(242, 79%, 53%)
CMYKcmyk(76.9%, 79.1%, 0%, 47.5%)
CIE-LABlab(19.40, 38.21, -57.76)
CIE-LCHlch(19.40, 69.26, 303.49°)
OKLaboklab(32.17% 0.0086 -0.1671)
OKLCHoklch(32.17% 0.167 272.9)
XYZxyz(5.2820, 2.8425, 22.8199)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1C86 #83861C
analogous
#1C4E86 #1F1C86 #541C86
triadic
#1F1C86 #861F1C #1C861F
tetradic
#1F1C86 #861C4E #83861C #1C8654
square
#1F1C86 #861C4E #83861C #1C8654
split-complementary
#1F1C86 #86541C #4E861C
monochromatic
#080721 #131153 #1F1C86 #2B27B9 #4944D8

Accessibility & contrast

On white

13.39
#1F1C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#1F1C86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1C86
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1C86#FFFFFF#000000##FFFFFF
##1F1C861.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.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: #1f1c86;
/* rgb */ color: rgb(31, 28, 134);
/* oklch */ color: oklch(32.2% 0.167 272.9);
Tailwind
colors: {
  custom: {
    50: '#6e5aaa',
    500: '#1f1c86',
    950: '#000000',
  },
}
SCSS
$custom: #1f1c86;
$custom-light: #6e5aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1c86",
  "rgb": {
    "r": 31,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 241.698,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32168,
    "c": 0.16737,
    "h": 272.9
  },
  "luminance": 0.02843
}

Semantic roles & 50–950 ramp

primary
#1F1C86
secondary
#B6B945
accent
#E83FE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #1F1C86

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

Preview Lab → · Contrast checker → · Palette generator →

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