#1F4086#1F4086

#1F4086 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 38.9% C 0.124 H 263.0°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#1F4086
RGBrgb(31, 64, 134)
HSLhsl(221, 62%, 32%)
HSVhsv(221, 77%, 53%)
CMYKcmyk(76.9%, 52.2%, 0%, 47.5%)
CIE-LABlab(28.59, 14.36, -42.74)
CIE-LCHlch(28.59, 45.09, 288.57°)
OKLaboklab(38.93% -0.0152 -0.1229)
OKLCHoklch(38.93% 0.124 263)
XYZxyz(6.7000, 5.6786, 23.2926)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4086 #86651F
analogous
#1F7386 #1F4086 #321F86
triadic
#1F4086 #861F40 #40861F
tetradic
#1F4086 #861F73 #86651F #1F8632
square
#1F4086 #861F73 #86651F #1F8632
split-complementary
#1F4086 #86321F #73861F
monochromatic
#081123 #142854 #1F4086 #2A58B8 #4A77D5

Accessibility & contrast

On white

9.83
#1F4086 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1F4086 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4086
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4086#FFFFFF#000000##FFFFFF
##1F40861.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144889
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f4086;
/* rgb */ color: rgb(31, 64, 134);
/* oklch */ color: oklch(38.9% 0.124 263.0);
Tailwind
colors: {
  custom: {
    50: '#6a74aa',
    500: '#1f4086',
    950: '#000000',
  },
}
SCSS
$custom: #1f4086;
$custom-light: #6a74aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4086",
  "rgb": {
    "r": 31,
    "g": 64,
    "b": 134
  },
  "hsl": {
    "h": 220.777,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38931,
    "c": 0.12385,
    "h": 263
  },
  "luminance": 0.05679
}

Semantic roles & 50–950 ramp

primary
#1F4086
secondary
#B89449
accent
#B142E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4086

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

Preview Lab → · Contrast checker → · Palette generator →

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