#1F3F82#1F3F82

#1F3F82 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.119 H 262.9°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#1F3F82
RGBrgb(31, 63, 130)
HSLhsl(221, 61%, 32%)
HSVhsv(221, 76%, 51%)
CMYKcmyk(76.2%, 51.5%, 0%, 49%)
CIE-LABlab(28.00, 13.45, -41.20)
CIE-LCHlch(28.00, 43.34, 288.08°)
OKLaboklab(38.39% -0.0148 -0.1184)
OKLCHoklch(38.39% 0.119 262.9)
XYZxyz(6.3704, 5.4573, 21.8324)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F82 #82621F
analogous
#1F7182 #1F3F82 #311F82
triadic
#1F3F82 #821F3F #3F821F
tetradic
#1F3F82 #821F71 #82621F #1F8231
square
#1F3F82 #821F71 #82621F #1F8231
split-complementary
#1F3F82 #82311F #71821F
monochromatic
#070F1F #132751 #1F3F82 #2B57B3 #4875D3

Accessibility & contrast

On white

10.04
#1F3F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1F3F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F82
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F82#FFFFFF#000000##FFFFFF
##1F3F821.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174784
Deuteranopia (green-blind)
#003E81
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3f82;
/* rgb */ color: rgb(31, 63, 130);
/* oklch */ color: oklch(38.4% 0.119 262.9);
Tailwind
colors: {
  custom: {
    50: '#6973a7',
    500: '#1f3f82',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f82;
$custom-light: #6973a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f82",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 130
  },
  "hsl": {
    "h": 220.606,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38391,
    "c": 0.11933,
    "h": 262.9
  },
  "luminance": 0.05458
}

Semantic roles & 50–950 ramp

primary
#1F3F82
secondary
#B59248
accent
#B043E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F3F82

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

Preview Lab → · Contrast checker → · Palette generator →

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