#1F3486#1F3486

#1F3486 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.3% C 0.140 H 267.7°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#1F3486
RGBrgb(31, 52, 134)
HSLhsl(228, 62%, 32%)
HSVhsv(228, 77%, 53%)
CMYKcmyk(76.9%, 61.2%, 0%, 47.5%)
CIE-LABlab(25.16, 22.71, -48.30)
CIE-LCHlch(25.16, 53.37, 295.18°)
OKLaboklab(36.35% -0.0055 -0.1395)
OKLCHoklch(36.35% 0.14 267.7)
XYZxyz(6.0946, 4.4679, 23.0908)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3486 #86711F
analogous
#1F6886 #1F3486 #3E1F86
triadic
#1F3486 #861F34 #34861F
tetradic
#1F3486 #861F68 #86711F #1F863E
square
#1F3486 #861F68 #86711F #1F863E
split-complementary
#1F3486 #863E1F #68861F
monochromatic
#080D23 #142154 #1F3486 #2A47B8 #4A67D5

Accessibility & contrast

On white

11.09
#1F3486 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F3486 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3486
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3486#FFFFFF#000000##FFFFFF
##1F34861.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004189
Deuteranopia (green-blind)
#003784
Tritanopia (blue-blind)
#004957
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f3486;
/* rgb */ color: rgb(31, 52, 134);
/* oklch */ color: oklch(36.3% 0.140 267.7);
Tailwind
colors: {
  custom: {
    50: '#6b6baa',
    500: '#1f3486',
    950: '#000000',
  },
}
SCSS
$custom: #1f3486;
$custom-light: #6b6baa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3486",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 134
  },
  "hsl": {
    "h": 227.767,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36348,
    "c": 0.13957,
    "h": 267.7
  },
  "luminance": 0.04469
}

Semantic roles & 50–950 ramp

primary
#1F3486
secondary
#B8A149
accent
#C442E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3486

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

Preview Lab → · Contrast checker → · Palette generator →

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