#1F3E82#1F3E82

#1F3E82 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.2% C 0.121 H 263.4°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#1F3E82
RGBrgb(31, 62, 130)
HSLhsl(221, 61%, 32%)
HSVhsv(221, 76%, 51%)
CMYKcmyk(76.2%, 52.3%, 0%, 49%)
CIE-LABlab(27.70, 14.14, -41.68)
CIE-LCHlch(27.70, 44.01, 288.74°)
OKLaboklab(38.16% -0.0139 -0.1198)
OKLCHoklch(38.16% 0.121 263.4)
XYZxyz(6.3155, 5.3476, 21.8141)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E82 #82631F
analogous
#1F7082 #1F3E82 #321F82
triadic
#1F3E82 #821F3E #3E821F
tetradic
#1F3E82 #821F70 #82631F #1F8232
square
#1F3E82 #821F70 #82631F #1F8232
split-complementary
#1F3E82 #82321F #70821F
monochromatic
#070F1F #132651 #1F3E82 #2B56B3 #4874D3

Accessibility & contrast

On white

10.15
#1F3E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1F3E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E82
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E82#FFFFFF#000000##FFFFFF
##1F3E821.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144684
Deuteranopia (green-blind)
#003D81
Tritanopia (blue-blind)
#004E5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3e82;
/* rgb */ color: rgb(31, 62, 130);
/* oklch */ color: oklch(38.2% 0.121 263.4);
Tailwind
colors: {
  custom: {
    50: '#6972a7',
    500: '#1f3e82',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e82;
$custom-light: #6972a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e82",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 130
  },
  "hsl": {
    "h": 221.212,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38164,
    "c": 0.12064,
    "h": 263.4
  },
  "luminance": 0.05348
}

Semantic roles & 50–950 ramp

primary
#1F3E82
secondary
#B59348
accent
#B243E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F3E82

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

Preview Lab → · Contrast checker → · Palette generator →

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