#1F3686#1F3686

#1F3686 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 36.8% C 0.137 H 267.1°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#1F3686
RGBrgb(31, 54, 134)
HSLhsl(227, 62%, 32%)
HSVhsv(227, 77%, 53%)
CMYKcmyk(76.9%, 59.7%, 0%, 47.5%)
CIE-LABlab(25.71, 21.32, -47.40)
CIE-LCHlch(25.71, 51.97, 294.22°)
OKLaboklab(36.76% -0.007 -0.1368)
OKLCHoklch(36.76% 0.137 267.1)
XYZxyz(6.1858, 4.6502, 23.1212)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3686 #866F1F
analogous
#1F6A86 #1F3686 #3C1F86
triadic
#1F3686 #861F36 #36861F
tetradic
#1F3686 #861F6A #866F1F #1F863C
square
#1F3686 #861F6A #866F1F #1F863C
split-complementary
#1F3686 #863C1F #6A861F
monochromatic
#080E23 #142254 #1F3686 #2A4AB8 #4A69D5

Accessibility & contrast

On white

10.88
#1F3686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F3686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3686
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3686#FFFFFF#000000##FFFFFF
##1F36861.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#003884
Tritanopia (blue-blind)
#004A58
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3686;
/* rgb */ color: rgb(31, 54, 134);
/* oklch */ color: oklch(36.8% 0.137 267.1);
Tailwind
colors: {
  custom: {
    50: '#6b6caa',
    500: '#1f3686',
    950: '#000000',
  },
}
SCSS
$custom: #1f3686;
$custom-light: #6b6caa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3686",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 134
  },
  "hsl": {
    "h": 226.602,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36761,
    "c": 0.13697,
    "h": 267.1
  },
  "luminance": 0.04651
}

Semantic roles & 50–950 ramp

primary
#1F3686
secondary
#B89F49
accent
#C142E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3686

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

Preview Lab → · Contrast checker → · Palette generator →

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