#1F4686#1F4686

#1F4686 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.3% C 0.116 H 259.8°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#1F4686
RGBrgb(31, 70, 134)
HSLhsl(217, 62%, 32%)
HSVhsv(217, 77%, 53%)
CMYKcmyk(76.9%, 47.8%, 0%, 47.5%)
CIE-LABlab(30.38, 10.23, -39.85)
CIE-LCHlch(30.38, 41.14, 284.40°)
OKLaboklab(40.31% -0.0205 -0.1143)
OKLCHoklch(40.31% 0.116 259.8)
XYZxyz(7.0567, 6.3921, 23.4115)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4686 #865F1F
analogous
#1F7986 #1F4686 #2C1F86
triadic
#1F4686 #861F46 #46861F
tetradic
#1F4686 #861F79 #865F1F #1F862C
square
#1F4686 #861F79 #865F1F #1F862C
split-complementary
#1F4686 #862C1F #79861F
monochromatic
#081223 #142C54 #1F4686 #2A60B8 #4A7FD5

Accessibility & contrast

On white

9.22
#1F4686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F4686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4686
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4686#FFFFFF#000000##FFFFFF
##1F46861.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#244D88
Deuteranopia (green-blind)
#0B4385
Tritanopia (blue-blind)
#00555F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4686;
/* rgb */ color: rgb(31, 70, 134);
/* oklch */ color: oklch(40.3% 0.116 259.8);
Tailwind
colors: {
  custom: {
    50: '#6a78aa',
    500: '#1f4686',
    950: '#000000',
  },
}
SCSS
$custom: #1f4686;
$custom-light: #6a78aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4686",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 134
  },
  "hsl": {
    "h": 217.282,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40305,
    "c": 0.11611,
    "h": 259.8
  },
  "luminance": 0.06393
}

Semantic roles & 50–950 ramp

primary
#1F4686
secondary
#B88E49
accent
#A842E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4686

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

Preview Lab → · Contrast checker → · Palette generator →

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