#1F4586#1F4586

#1F4586 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.1% C 0.117 H 260.4°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#1F4586
RGBrgb(31, 69, 134)
HSLhsl(218, 62%, 32%)
HSVhsv(218, 77%, 53%)
CMYKcmyk(76.9%, 48.5%, 0%, 47.5%)
CIE-LABlab(30.08, 10.91, -40.34)
CIE-LCHlch(30.08, 41.79, 285.14°)
OKLaboklab(40.07% -0.0196 -0.1157)
OKLCHoklch(40.07% 0.117 260.4)
XYZxyz(6.9947, 6.2680, 23.3908)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4586 #86601F
analogous
#1F7986 #1F4586 #2D1F86
triadic
#1F4586 #861F45 #45861F
tetradic
#1F4586 #861F79 #86601F #1F862D
square
#1F4586 #861F79 #86601F #1F862D
split-complementary
#1F4586 #862D1F #79861F
monochromatic
#081223 #142B54 #1F4586 #2A5FB8 #4A7DD5

Accessibility & contrast

On white

9.32
#1F4586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F4586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4586
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4586#FFFFFF#000000##FFFFFF
##1F45861.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224C88
Deuteranopia (green-blind)
#064285
Tritanopia (blue-blind)
#00545F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4586;
/* rgb */ color: rgb(31, 69, 134);
/* oklch */ color: oklch(40.1% 0.117 260.4);
Tailwind
colors: {
  custom: {
    50: '#6a78aa',
    500: '#1f4586',
    950: '#000000',
  },
}
SCSS
$custom: #1f4586;
$custom-light: #6a78aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4586",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 134
  },
  "hsl": {
    "h": 217.864,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.40073,
    "c": 0.11739,
    "h": 260.4
  },
  "luminance": 0.06269
}

Semantic roles & 50–950 ramp

primary
#1F4586
secondary
#B88F49
accent
#A942E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F4586

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

Preview Lab → · Contrast checker → · Palette generator →

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