#1F4782#1F4782

#1F4782 is a dark, moderate blue. Relative luminance 0.064; OKLCH L 40.3% C 0.109 H 258.3°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#1F4782
RGBrgb(31, 71, 130)
HSLhsl(216, 61%, 32%)
HSVhsv(216, 76%, 51%)
CMYKcmyk(76.2%, 45.4%, 0%, 49%)
CIE-LABlab(30.42, 7.95, -37.31)
CIE-LCHlch(30.42, 38.14, 282.02°)
OKLaboklab(40.25% -0.0222 -0.1068)
OKLCHoklch(40.25% 0.109 258.3)
XYZxyz(6.8461, 6.4087, 21.9910)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4782 #825A1F
analogous
#1F7982 #1F4782 #291F82
triadic
#1F4782 #821F47 #47821F
tetradic
#1F4782 #821F79 #825A1F #1F8229
square
#1F4782 #821F79 #825A1F #1F8229
split-complementary
#1F4782 #82291F #79821F
monochromatic
#07111F #132C51 #1F4782 #2B62B3 #4880D3

Accessibility & contrast

On white

9.20
#1F4782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#1F4782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4782
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4782#FFFFFF#000000##FFFFFF
##1F47821.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4D84
Deuteranopia (green-blind)
#174381
Tritanopia (blue-blind)
#00555E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4782;
/* rgb */ color: rgb(31, 71, 130);
/* oklch */ color: oklch(40.3% 0.109 258.3);
Tailwind
colors: {
  custom: {
    50: '#6979a7',
    500: '#1f4782',
    950: '#000000',
  },
}
SCSS
$custom: #1f4782;
$custom-light: #6979a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4782",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 130
  },
  "hsl": {
    "h": 215.758,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.40251,
    "c": 0.10907,
    "h": 258.3
  },
  "luminance": 0.06409
}

Semantic roles & 50–950 ramp

primary
#1F4782
secondary
#B58948
accent
#A343E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #1F4782

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

Preview Lab → · Contrast checker → · Palette generator →

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