#1F4886#1F4886

#1F4886 is a dark, moderate blue. Relative luminance 0.066; OKLCH L 40.8% C 0.114 H 258.7°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#1F4886
RGBrgb(31, 72, 134)
HSLhsl(216, 62%, 32%)
HSVhsv(216, 77%, 53%)
CMYKcmyk(76.9%, 46.3%, 0%, 47.5%)
CIE-LABlab(30.99, 8.87, -38.88)
CIE-LCHlch(30.99, 39.87, 282.85°)
OKLaboklab(40.77% -0.0223 -0.1114)
OKLCHoklch(40.77% 0.114 258.7)
XYZxyz(7.1839, 6.6465, 23.4539)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4886 #865D1F
analogous
#1F7B86 #1F4886 #2A1F86
triadic
#1F4886 #861F48 #48861F
tetradic
#1F4886 #861F7B #865D1F #1F862A
square
#1F4886 #861F7B #865D1F #1F862A
split-complementary
#1F4886 #862A1F #7B861F
monochromatic
#081323 #142D54 #1F4886 #2A63B8 #4A82D5

Accessibility & contrast

On white

9.02
#1F4886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#1F4886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4886
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4886#FFFFFF#000000##FFFFFF
##1F48861.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284E88
Deuteranopia (green-blind)
#134585
Tritanopia (blue-blind)
#005760
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #1f4886;
/* rgb */ color: rgb(31, 72, 134);
/* oklch */ color: oklch(40.8% 0.114 258.7);
Tailwind
colors: {
  custom: {
    50: '#6a7aaa',
    500: '#1f4886',
    950: '#000000',
  },
}
SCSS
$custom: #1f4886;
$custom-light: #6a7aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4886",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 134
  },
  "hsl": {
    "h": 216.117,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40773,
    "c": 0.11361,
    "h": 258.7
  },
  "luminance": 0.06647
}

Semantic roles & 50–950 ramp

primary
#1F4886
secondary
#B88C49
accent
#A542E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4886

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

Preview Lab → · Contrast checker → · Palette generator →

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