#1F4282#1F4282

#1F4282 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.1% C 0.115 H 261.3°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#1F4282
RGBrgb(31, 66, 130)
HSLhsl(219, 61%, 32%)
HSVhsv(219, 76%, 51%)
CMYKcmyk(76.2%, 49.2%, 0%, 49%)
CIE-LABlab(28.90, 11.37, -39.75)
CIE-LCHlch(28.90, 41.34, 285.96°)
OKLaboklab(39.08% -0.0175 -0.1141)
OKLCHoklch(39.08% 0.115 261.3)
XYZxyz(6.5411, 5.7987, 21.8893)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4282 #825F1F
analogous
#1F7482 #1F4282 #2E1F82
triadic
#1F4282 #821F42 #42821F
tetradic
#1F4282 #821F74 #825F1F #1F822E
square
#1F4282 #821F74 #825F1F #1F822E
split-complementary
#1F4282 #822E1F #74821F
monochromatic
#07101F #132951 #1F4282 #2B5BB3 #4879D3

Accessibility & contrast

On white

9.72
#1F4282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1F4282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4282
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4282#FFFFFF#000000##FFFFFF
##1F42821.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4984
Deuteranopia (green-blind)
#034081
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f4282;
/* rgb */ color: rgb(31, 66, 130);
/* oklch */ color: oklch(39.1% 0.115 261.3);
Tailwind
colors: {
  custom: {
    50: '#6975a7',
    500: '#1f4282',
    950: '#000000',
  },
}
SCSS
$custom: #1f4282;
$custom-light: #6975a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4282",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 130
  },
  "hsl": {
    "h": 218.788,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.39079,
    "c": 0.11542,
    "h": 261.3
  },
  "luminance": 0.05799
}

Semantic roles & 50–950 ramp

primary
#1F4282
secondary
#B58E48
accent
#AC43E5
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F4282

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

Preview Lab → · Contrast checker → · Palette generator →

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