#1F4580#1F4580

#1F4580 is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.6% C 0.109 H 259.0°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#1F4580
RGBrgb(31, 69, 128)
HSLhsl(216, 61%, 31%)
HSVhsv(216, 76%, 50%)
CMYKcmyk(75.8%, 46.1%, 0%, 49.8%)
CIE-LABlab(29.68, 8.51, -37.26)
CIE-LCHlch(29.68, 38.21, 282.86°)
OKLaboklab(39.63% -0.0207 -0.1067)
OKLCHoklch(39.63% 0.109 259)
XYZxyz(6.5881, 6.1053, 21.2491)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4580 #805A1F
analogous
#1F7580 #1F4580 #291F80
triadic
#1F4580 #801F45 #45801F
tetradic
#1F4580 #801F75 #805A1F #1F8029
square
#1F4580 #801F75 #805A1F #1F8029
split-complementary
#1F4580 #80291F #75801F
monochromatic
#07101D #132A4F #1F4580 #2B60B1 #477ED2

Accessibility & contrast

On white

9.45
#1F4580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#1F4580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4580
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4580#FFFFFF#000000##FFFFFF
##1F45801.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274B82
Deuteranopia (green-blind)
#14427F
Tritanopia (blue-blind)
#00535C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4580;
/* rgb */ color: rgb(31, 69, 128);
/* oklch */ color: oklch(39.6% 0.109 259.0);
Tailwind
colors: {
  custom: {
    50: '#6978a5',
    500: '#1f4580',
    950: '#000000',
  },
}
SCSS
$custom: #1f4580;
$custom-light: #6978a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4580",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 128
  },
  "hsl": {
    "h": 216.495,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.39634,
    "c": 0.10867,
    "h": 259
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

primary
#1F4580
secondary
#B38948
accent
#A544E4
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4580

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

Preview Lab → · Contrast checker → · Palette generator →

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