#1F1986#1F1986

#1F1986 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.170 H 273.3°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#1F1986
RGBrgb(31, 25, 134)
HSLhsl(243, 69%, 31%)
HSVhsv(243, 81%, 53%)
CMYKcmyk(76.9%, 81.3%, 0%, 47.5%)
CIE-LABlab(18.83, 39.85, -58.71)
CIE-LCHlch(18.83, 70.95, 304.17°)
OKLaboklab(31.77% 0.0098 -0.1698)
OKLCHoklch(31.77% 0.17 273.3)
XYZxyz(5.2143, 2.7073, 22.7974)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1986 #808619
analogous
#194986 #1F1986 #551986
triadic
#1F1986 #861F19 #19861F
tetradic
#1F1986 #861949 #808619 #198655
square
#1F1986 #861949 #808619 #198655
split-complementary
#1F1986 #865519 #498619
monochromatic
#07061F #130F52 #1F1986 #2B23BA #473EDB

Accessibility & contrast

On white

13.62
#1F1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1986
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1986#FFFFFF#000000##FFFFFF
##1F19861.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002884
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f1986;
/* rgb */ color: rgb(31, 25, 134);
/* oklch */ color: oklch(31.8% 0.170 273.3);
Tailwind
colors: {
  custom: {
    50: '#6e58aa',
    500: '#1f1986',
    950: '#000000',
  },
}
SCSS
$custom: #1f1986;
$custom-light: #6e58aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1986",
  "rgb": {
    "r": 31,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 243.303,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31768,
    "c": 0.17013,
    "h": 273.3
  },
  "luminance": 0.02708
}

Semantic roles & 50–950 ramp

primary
#1F1986
secondary
#B3BA41
accent
#EB3CE2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F

Preview Lab

Preview with #1F1986

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

Preview Lab → · Contrast checker → · Palette generator →

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