#1F3A82#1F3A82

#1F3A82 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.3% C 0.126 H 265.2°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#1F3A82
RGBrgb(31, 58, 130)
HSLhsl(224, 61%, 32%)
HSVhsv(224, 76%, 51%)
CMYKcmyk(76.2%, 55.4%, 0%, 49%)
CIE-LABlab(26.53, 16.93, -43.58)
CIE-LCHlch(26.53, 46.75, 291.24°)
OKLaboklab(37.27% -0.0105 -0.1255)
OKLCHoklch(37.27% 0.126 265.2)
XYZxyz(6.1060, 4.9285, 21.7443)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3A82 #82671F
analogous
#1F6C82 #1F3A82 #351F82
triadic
#1F3A82 #821F3A #3A821F
tetradic
#1F3A82 #821F6C #82671F #1F8235
square
#1F3A82 #821F6C #82671F #1F8235
split-complementary
#1F3A82 #82351F #6C821F
monochromatic
#070E1F #132451 #1F3A82 #2B50B3 #486ED3

Accessibility & contrast

On white

10.58
#1F3A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F3A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3A82
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3A82#FFFFFF#000000##FFFFFF
##1F3A821.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034485
Deuteranopia (green-blind)
#003A81
Tritanopia (blue-blind)
#004B58
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f3a82;
/* rgb */ color: rgb(31, 58, 130);
/* oklch */ color: oklch(37.3% 0.126 265.2);
Tailwind
colors: {
  custom: {
    50: '#6a6fa7',
    500: '#1f3a82',
    950: '#000000',
  },
}
SCSS
$custom: #1f3a82;
$custom-light: #6a6fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3a82",
  "rgb": {
    "r": 31,
    "g": 58,
    "b": 130
  },
  "hsl": {
    "h": 223.636,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37273,
    "c": 0.12592,
    "h": 265.2
  },
  "luminance": 0.04929
}

Semantic roles & 50–950 ramp

primary
#1F3A82
secondary
#B59748
accent
#B943E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F3A82

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

Preview Lab → · Contrast checker → · Palette generator →

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