#1F4486#1F4486

#1F4486 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.8% C 0.119 H 260.9°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#1F4486
RGBrgb(31, 68, 134)
HSLhsl(218, 62%, 32%)
HSVhsv(218, 77%, 53%)
CMYKcmyk(76.9%, 49.3%, 0%, 47.5%)
CIE-LABlab(29.78, 11.60, -40.82)
CIE-LCHlch(29.78, 42.44, 285.87°)
OKLaboklab(39.84% -0.0187 -0.1172)
OKLCHoklch(39.84% 0.119 260.9)
XYZxyz(6.9337, 6.1460, 23.3705)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4486 #86611F
analogous
#1F7786 #1F4486 #2E1F86
triadic
#1F4486 #861F44 #44861F
tetradic
#1F4486 #861F77 #86611F #1F862E
square
#1F4486 #861F77 #86611F #1F862E
split-complementary
#1F4486 #862E1F #77861F
monochromatic
#081223 #142B54 #1F4486 #2A5DB8 #4A7CD5

Accessibility & contrast

On white

9.42
#1F4486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F4486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4486
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4486#FFFFFF#000000##FFFFFF
##1F44861.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204B88
Deuteranopia (green-blind)
#014285
Tritanopia (blue-blind)
#00545E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4486;
/* rgb */ color: rgb(31, 68, 134);
/* oklch */ color: oklch(39.8% 0.119 260.9);
Tailwind
colors: {
  custom: {
    50: '#6a77aa',
    500: '#1f4486',
    950: '#000000',
  },
}
SCSS
$custom: #1f4486;
$custom-light: #6a77aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4486",
  "rgb": {
    "r": 31,
    "g": 68,
    "b": 134
  },
  "hsl": {
    "h": 218.447,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.39842,
    "c": 0.11867,
    "h": 260.9
  },
  "luminance": 0.06147
}

Semantic roles & 50–950 ramp

primary
#1F4486
secondary
#B89049
accent
#AB42E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4486

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

Preview Lab → · Contrast checker → · Palette generator →

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