#1F3886#1F3886

#1F3886 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.2% C 0.134 H 266.3°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#1F3886
RGBrgb(31, 56, 134)
HSLhsl(225, 62%, 32%)
HSVhsv(225, 77%, 53%)
CMYKcmyk(76.9%, 58.2%, 0%, 47.5%)
CIE-LABlab(26.27, 19.93, -46.49)
CIE-LCHlch(26.27, 50.58, 293.20°)
OKLaboklab(37.18% -0.0086 -0.1341)
OKLCHoklch(37.18% 0.134 266.3)
XYZxyz(6.2808, 4.8402, 23.1529)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3886 #866D1F
analogous
#1F6B86 #1F3886 #3A1F86
triadic
#1F3886 #861F38 #38861F
tetradic
#1F3886 #861F6B #866D1F #1F863A
square
#1F3886 #861F6B #866D1F #1F863A
split-complementary
#1F3886 #863A1F #6B861F
monochromatic
#080E23 #142354 #1F3886 #2A4DB8 #4A6CD5

Accessibility & contrast

On white

10.67
#1F3886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F3886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3886
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3886#FFFFFF#000000##FFFFFF
##1F38861.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004389
Deuteranopia (green-blind)
#003A84
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3886;
/* rgb */ color: rgb(31, 56, 134);
/* oklch */ color: oklch(37.2% 0.134 266.3);
Tailwind
colors: {
  custom: {
    50: '#6b6eaa',
    500: '#1f3886',
    950: '#000000',
  },
}
SCSS
$custom: #1f3886;
$custom-light: #6b6eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3886",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 134
  },
  "hsl": {
    "h": 225.437,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37181,
    "c": 0.13435,
    "h": 266.3
  },
  "luminance": 0.04841
}

Semantic roles & 50–950 ramp

primary
#1F3886
secondary
#B89D49
accent
#BE42E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3886

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

Preview Lab → · Contrast checker → · Palette generator →

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