#1F3986#1F3986

#1F3986 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.4% C 0.133 H 266.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#1F3986
RGBrgb(31, 57, 134)
HSLhsl(225, 62%, 32%)
HSVhsv(225, 77%, 53%)
CMYKcmyk(76.9%, 57.5%, 0%, 47.5%)
CIE-LABlab(26.56, 19.23, -46.03)
CIE-LCHlch(26.56, 49.88, 292.68°)
OKLaboklab(37.39% -0.0094 -0.1327)
OKLCHoklch(37.39% 0.133 266)
XYZxyz(6.3298, 4.9381, 23.1692)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3986 #866C1F
analogous
#1F6D86 #1F3986 #381F86
triadic
#1F3986 #861F39 #39861F
tetradic
#1F3986 #861F6D #866C1F #1F8638
square
#1F3986 #861F6D #866C1F #1F8638
split-complementary
#1F3986 #86381F #6D861F
monochromatic
#080F23 #142454 #1F3986 #2A4EB8 #4A6DD5

Accessibility & contrast

On white

10.56
#1F3986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F3986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3986
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3986#FFFFFF#000000##FFFFFF
##1F39861.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004489
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3986;
/* rgb */ color: rgb(31, 57, 134);
/* oklch */ color: oklch(37.4% 0.133 266.0);
Tailwind
colors: {
  custom: {
    50: '#6b6eaa',
    500: '#1f3986',
    950: '#000000',
  },
}
SCSS
$custom: #1f3986;
$custom-light: #6b6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3986",
  "rgb": {
    "r": 31,
    "g": 57,
    "b": 134
  },
  "hsl": {
    "h": 224.854,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37394,
    "c": 0.13304,
    "h": 266
  },
  "luminance": 0.04939
}

Semantic roles & 50–950 ramp

primary
#1F3986
secondary
#B89C49
accent
#BC42E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3986

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

Preview Lab → · Contrast checker → · Palette generator →

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