#1F3C82#1F3C82

#1F3C82 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 37.7% C 0.123 H 264.3°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#1F3C82
RGBrgb(31, 60, 130)
HSLhsl(222, 61%, 32%)
HSVhsv(222, 76%, 51%)
CMYKcmyk(76.2%, 53.8%, 0%, 49%)
CIE-LABlab(27.11, 15.54, -42.63)
CIE-LCHlch(27.11, 45.37, 290.02°)
OKLaboklab(37.72% -0.0122 -0.1227)
OKLCHoklch(37.72% 0.123 264.3)
XYZxyz(6.2088, 5.1341, 21.7785)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C82 #82651F
analogous
#1F6E82 #1F3C82 #341F82
triadic
#1F3C82 #821F3C #3C821F
tetradic
#1F3C82 #821F6E #82651F #1F8234
square
#1F3C82 #821F6E #82651F #1F8234
split-complementary
#1F3C82 #82341F #6E821F
monochromatic
#070E1F #132551 #1F3C82 #2B53B3 #4871D3

Accessibility & contrast

On white

10.36
#1F3C82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F3C82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3C82
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C82#FFFFFF#000000##FFFFFF
##1F3C821.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4584
Deuteranopia (green-blind)
#003C81
Tritanopia (blue-blind)
#004D59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3c82;
/* rgb */ color: rgb(31, 60, 130);
/* oklch */ color: oklch(37.7% 0.123 264.3);
Tailwind
colors: {
  custom: {
    50: '#6a71a7',
    500: '#1f3c82',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c82;
$custom-light: #6a71a7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c82",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 130
  },
  "hsl": {
    "h": 222.424,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37716,
    "c": 0.12328,
    "h": 264.3
  },
  "luminance": 0.05135
}

Semantic roles & 50–950 ramp

primary
#1F3C82
secondary
#B59548
accent
#B543E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #1F3C82

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

Preview Lab → · Contrast checker → · Palette generator →

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