#1F4786#1F4786

#1F4786 is a dark, moderate blue. Relative luminance 0.065; OKLCH L 40.5% C 0.115 H 259.3°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#1F4786
RGBrgb(31, 71, 134)
HSLhsl(217, 62%, 32%)
HSVhsv(217, 77%, 53%)
CMYKcmyk(76.9%, 47%, 0%, 47.5%)
CIE-LABlab(30.68, 9.55, -39.36)
CIE-LCHlch(30.68, 40.51, 283.63°)
OKLaboklab(40.54% -0.0214 -0.1128)
OKLCHoklch(40.54% 0.115 259.3)
XYZxyz(7.1198, 6.5182, 23.4325)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4786 #865E1F
analogous
#1F7B86 #1F4786 #2B1F86
triadic
#1F4786 #861F47 #47861F
tetradic
#1F4786 #861F7B #865E1F #1F862B
square
#1F4786 #861F7B #865E1F #1F862B
split-complementary
#1F4786 #862B1F #7B861F
monochromatic
#081223 #142D54 #1F4786 #2A61B8 #4A80D5

Accessibility & contrast

On white

9.12
#1F4786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1F4786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4786
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4786#FFFFFF#000000##FFFFFF
##1F47861.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264D88
Deuteranopia (green-blind)
#0F4485
Tritanopia (blue-blind)
#005660
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4786;
/* rgb */ color: rgb(31, 71, 134);
/* oklch */ color: oklch(40.5% 0.115 259.3);
Tailwind
colors: {
  custom: {
    50: '#6a79aa',
    500: '#1f4786',
    950: '#000000',
  },
}
SCSS
$custom: #1f4786;
$custom-light: #6a79aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4786",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 134
  },
  "hsl": {
    "h": 216.699,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40539,
    "c": 0.11485,
    "h": 259.3
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#1F4786
secondary
#B88D49
accent
#A642E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070910
muted
#7A7B7F

Preview Lab

Preview with #1F4786

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

Preview Lab → · Contrast checker → · Palette generator →

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