#1F3D82#1F3D82

#1F3D82 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 37.9% C 0.122 H 263.8°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#1F3D82
RGBrgb(31, 61, 130)
HSLhsl(222, 61%, 32%)
HSVhsv(222, 76%, 51%)
CMYKcmyk(76.2%, 53.1%, 0%, 49%)
CIE-LABlab(27.41, 14.84, -42.16)
CIE-LCHlch(27.41, 44.69, 289.39°)
OKLaboklab(37.94% -0.0131 -0.1212)
OKLCHoklch(37.94% 0.122 263.8)
XYZxyz(6.2617, 5.2398, 21.7961)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D82 #82641F
analogous
#1F6F82 #1F3D82 #331F82
triadic
#1F3D82 #821F3D #3D821F
tetradic
#1F3D82 #821F6F #82641F #1F8233
square
#1F3D82 #821F6F #82641F #1F8233
split-complementary
#1F3D82 #82331F #6F821F
monochromatic
#070F1F #132651 #1F3D82 #2B54B3 #4872D3

Accessibility & contrast

On white

10.25
#1F3D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#1F3D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D82
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D82#FFFFFF#000000##FFFFFF
##1F3D821.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114684
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3d82;
/* rgb */ color: rgb(31, 61, 130);
/* oklch */ color: oklch(37.9% 0.122 263.8);
Tailwind
colors: {
  custom: {
    50: '#6a72a7',
    500: '#1f3d82',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d82;
$custom-light: #6a72a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d82",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 130
  },
  "hsl": {
    "h": 221.818,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37939,
    "c": 0.12195,
    "h": 263.8
  },
  "luminance": 0.0524
}

Semantic roles & 50–950 ramp

primary
#1F3D82
secondary
#B59448
accent
#B443E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F3D82

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

Preview Lab → · Contrast checker → · Palette generator →

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