#1F4682#1F4682

#1F4682 is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.0% C 0.110 H 258.9°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#1F4682
RGBrgb(31, 70, 130)
HSLhsl(216, 61%, 32%)
HSVhsv(216, 76%, 51%)
CMYKcmyk(76.2%, 46.2%, 0%, 49%)
CIE-LABlab(30.11, 8.63, -37.80)
CIE-LCHlch(30.11, 38.77, 282.85°)
OKLaboklab(40.01% -0.0213 -0.1083)
OKLCHoklch(40.01% 0.11 258.9)
XYZxyz(6.7830, 6.2826, 21.9699)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4682 #825B1F
analogous
#1F7882 #1F4682 #2A1F82
triadic
#1F4682 #821F46 #46821F
tetradic
#1F4682 #821F78 #825B1F #1F822A
square
#1F4682 #821F78 #825B1F #1F822A
split-complementary
#1F4682 #822A1F #78821F
monochromatic
#07111F #132B51 #1F4682 #2B61B3 #487FD3

Accessibility & contrast

On white

9.31
#1F4682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F4682 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4682
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4682#FFFFFF#000000##FFFFFF
##1F46821.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284C84
Deuteranopia (green-blind)
#144381
Tritanopia (blue-blind)
#00545D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f4682;
/* rgb */ color: rgb(31, 70, 130);
/* oklch */ color: oklch(40.0% 0.110 258.9);
Tailwind
colors: {
  custom: {
    50: '#6978a7',
    500: '#1f4682',
    950: '#000000',
  },
}
SCSS
$custom: #1f4682;
$custom-light: #6978a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4682",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 130
  },
  "hsl": {
    "h": 216.364,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40014,
    "c": 0.11033,
    "h": 258.9
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#1F4682
secondary
#B58A48
accent
#A543E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F4682

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

Preview Lab → · Contrast checker → · Palette generator →

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