#1F4582#1F4582

#1F4582 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 39.8% C 0.112 H 259.5°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#1F4582
RGBrgb(31, 69, 130)
HSLhsl(217, 61%, 32%)
HSVhsv(217, 76%, 51%)
CMYKcmyk(76.2%, 46.9%, 0%, 49%)
CIE-LABlab(29.81, 9.31, -38.29)
CIE-LCHlch(29.81, 39.40, 283.67°)
OKLaboklab(39.78% -0.0203 -0.1097)
OKLCHoklch(39.78% 0.112 259.5)
XYZxyz(6.7210, 6.1585, 21.9493)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4582 #825C1F
analogous
#1F7782 #1F4582 #2B1F82
triadic
#1F4582 #821F45 #45821F
tetradic
#1F4582 #821F77 #825C1F #1F822B
square
#1F4582 #821F77 #825C1F #1F822B
split-complementary
#1F4582 #822B1F #77821F
monochromatic
#07111F #132B51 #1F4582 #2B5FB3 #487ED3

Accessibility & contrast

On white

9.41
#1F4582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F4582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4582
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4582#FFFFFF#000000##FFFFFF
##1F45821.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264B84
Deuteranopia (green-blind)
#104281
Tritanopia (blue-blind)
#00535D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f4582;
/* rgb */ color: rgb(31, 69, 130);
/* oklch */ color: oklch(39.8% 0.112 259.5);
Tailwind
colors: {
  custom: {
    50: '#6978a7',
    500: '#1f4582',
    950: '#000000',
  },
}
SCSS
$custom: #1f4582;
$custom-light: #6978a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4582",
  "rgb": {
    "r": 31,
    "g": 69,
    "b": 130
  },
  "hsl": {
    "h": 216.97,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39778,
    "c": 0.11158,
    "h": 259.5
  },
  "luminance": 0.06159
}

Semantic roles & 50–950 ramp

primary
#1F4582
secondary
#B58B48
accent
#A743E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4582

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

Preview Lab → · Contrast checker → · Palette generator →

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