#1F3386#1F3386

#1F3386 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.1% C 0.141 H 268.1°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#1F3386
RGBrgb(31, 51, 134)
HSLhsl(228, 62%, 32%)
HSVhsv(228, 77%, 53%)
CMYKcmyk(76.9%, 61.9%, 0%, 47.5%)
CIE-LABlab(24.89, 23.40, -48.75)
CIE-LCHlch(24.89, 54.07, 295.64°)
OKLaboklab(36.14% -0.0048 -0.1408)
OKLCHoklch(36.14% 0.141 268.1)
XYZxyz(6.0505, 4.3795, 23.0761)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3386 #86721F
analogous
#1F6686 #1F3386 #3F1F86
triadic
#1F3386 #861F33 #33861F
tetradic
#1F3386 #861F66 #86721F #1F863F
square
#1F3386 #861F66 #86721F #1F863F
split-complementary
#1F3386 #863F1F #66861F
monochromatic
#080D23 #142054 #1F3386 #2A46B8 #4A65D5

Accessibility & contrast

On white

11.19
#1F3386 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F3386 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3386
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3386#FFFFFF#000000##FFFFFF
##1F33861.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004089
Deuteranopia (green-blind)
#003684
Tritanopia (blue-blind)
#004857
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f3386;
/* rgb */ color: rgb(31, 51, 134);
/* oklch */ color: oklch(36.1% 0.141 268.1);
Tailwind
colors: {
  custom: {
    50: '#6b6aaa',
    500: '#1f3386',
    950: '#000000',
  },
}
SCSS
$custom: #1f3386;
$custom-light: #6b6aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3386",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 134
  },
  "hsl": {
    "h": 228.35,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36145,
    "c": 0.14087,
    "h": 268.1
  },
  "luminance": 0.0438
}

Semantic roles & 50–950 ramp

primary
#1F3386
secondary
#B8A249
accent
#C642E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3386

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

Preview Lab → · Contrast checker → · Palette generator →

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