#1F3586#1F3586

#1F3586 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.6% C 0.138 H 267.4°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#1F3586
RGBrgb(31, 53, 134)
HSLhsl(227, 62%, 32%)
HSVhsv(227, 77%, 53%)
CMYKcmyk(76.9%, 60.4%, 0%, 47.5%)
CIE-LABlab(25.44, 22.01, -47.85)
CIE-LCHlch(25.44, 52.67, 294.70°)
OKLaboklab(36.55% -0.0063 -0.1381)
OKLCHoklch(36.55% 0.138 267.4)
XYZxyz(6.1398, 4.5581, 23.1058)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3586 #86701F
analogous
#1F6986 #1F3586 #3C1F86
triadic
#1F3586 #861F35 #35861F
tetradic
#1F3586 #861F69 #86701F #1F863C
square
#1F3586 #861F69 #86701F #1F863C
split-complementary
#1F3586 #863C1F #69861F
monochromatic
#080E23 #142154 #1F3586 #2A49B8 #4A68D5

Accessibility & contrast

On white

10.98
#1F3586 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F3586 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3586
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3586#FFFFFF#000000##FFFFFF
##1F35861.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f3586;
/* rgb */ color: rgb(31, 53, 134);
/* oklch */ color: oklch(36.6% 0.138 267.4);
Tailwind
colors: {
  custom: {
    50: '#6b6baa',
    500: '#1f3586',
    950: '#000000',
  },
}
SCSS
$custom: #1f3586;
$custom-light: #6b6baa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3586",
  "rgb": {
    "r": 31,
    "g": 53,
    "b": 134
  },
  "hsl": {
    "h": 227.184,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36553,
    "c": 0.13827,
    "h": 267.4
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#1F3586
secondary
#B8A049
accent
#C342E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F3586

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

Preview Lab → · Contrast checker → · Palette generator →

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