#1F1686#1F1686

#1F1686 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.173 H 273.6°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#1F1686
RGBrgb(31, 22, 134)
HSLhsl(245, 72%, 31%)
HSVhsv(245, 84%, 53%)
CMYKcmyk(76.9%, 83.6%, 0%, 47.5%)
CIE-LABlab(18.30, 41.39, -59.58)
CIE-LCHlch(18.30, 72.55, 304.79°)
OKLaboklab(31.4% 0.0109 -0.1723)
OKLCHoklch(31.4% 0.173 273.6)
XYZxyz(5.1536, 2.5858, 22.7771)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1686 #7D8616
analogous
#164586 #1F1686 #571686
triadic
#1F1686 #861F16 #16861F
tetradic
#1F1686 #861645 #7D8616 #168657
square
#1F1686 #861645 #7D8616 #168657
split-complementary
#1F1686 #865716 #458616
monochromatic
#07051D #130D51 #1F1686 #2B1FBB #4538DE

Accessibility & contrast

On white

13.84
#1F1686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#1F1686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1686
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1686#FFFFFF#000000##FFFFFF
##1F16861.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003289
Deuteranopia (green-blind)
#002784
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f1686;
/* rgb */ color: rgb(31, 22, 134);
/* oklch */ color: oklch(31.4% 0.173 273.6);
Tailwind
colors: {
  custom: {
    50: '#6e57ab',
    500: '#1f1686',
    950: '#000000',
  },
}
SCSS
$custom: #1f1686;
$custom-light: #6e57ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1686",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 244.821,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.314,
    "c": 0.17269,
    "h": 273.6
  },
  "luminance": 0.02586
}

Semantic roles & 50–950 ramp

primary
#1F1686
secondary
#B0BA3E
accent
#EF39E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1686

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

Preview Lab → · Contrast checker → · Palette generator →

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