#1F3687#1F3687

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

Color values

HEX#1F3687
RGBrgb(31, 54, 135)
HSLhsl(227, 63%, 33%)
HSVhsv(227, 77%, 53%)
CMYKcmyk(77%, 60%, 0%, 47.1%)
CIE-LABlab(25.80, 21.72, -47.89)
CIE-LCHlch(25.80, 52.58, 294.39°)
OKLaboklab(36.85% -0.007 -0.1382)
OKLCHoklch(36.85% 0.138 267.1)
XYZxyz(6.2559, 4.6782, 23.4903)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3687 #87701F
analogous
#1F6A87 #1F3687 #3C1F87
triadic
#1F3687 #871F36 #36871F
tetradic
#1F3687 #871F6A #87701F #1F873C
square
#1F3687 #871F6A #87701F #1F873C
split-complementary
#1F3687 #873C1F #6A871F
monochromatic
#080E23 #142255 #1F3687 #2A4AB9 #4B69D6

Accessibility & contrast

On white

10.85
#1F3687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F3687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3687
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3687#FFFFFF#000000##FFFFFF
##1F36871.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f3687;
/* rgb */ color: rgb(31, 54, 135);
/* oklch */ color: oklch(36.8% 0.138 267.1);
Tailwind
colors: {
  custom: {
    50: '#6b6cab',
    500: '#1f3687',
    950: '#000000',
  },
}
SCSS
$custom: #1f3687;
$custom-light: #6b6cab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3687",
  "rgb": {
    "r": 31,
    "g": 54,
    "b": 135
  },
  "hsl": {
    "h": 226.731,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36849,
    "c": 0.1384,
    "h": 267.1
  },
  "luminance": 0.04679
}

Semantic roles & 50–950 ramp

primary
#1F3687
secondary
#B8A04A
accent
#C242E6
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3687

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

Preview Lab → · Contrast checker → · Palette generator →

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