#1F3D86#1F3D86

#1F3D86 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.3% C 0.128 H 264.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#1F3D86
RGBrgb(31, 61, 134)
HSLhsl(223, 62%, 32%)
HSVhsv(223, 77%, 53%)
CMYKcmyk(76.9%, 54.5%, 0%, 47.5%)
CIE-LABlab(27.71, 16.45, -44.16)
CIE-LCHlch(27.71, 47.12, 290.42°)
OKLaboklab(38.26% -0.0126 -0.1272)
OKLCHoklch(38.26% 0.128 264.3)
XYZxyz(6.5354, 5.3493, 23.2377)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D86 #86681F
analogous
#1F7186 #1F3D86 #341F86
triadic
#1F3D86 #861F3D #3D861F
tetradic
#1F3D86 #861F71 #86681F #1F8634
square
#1F3D86 #861F71 #86681F #1F8634
split-complementary
#1F3D86 #86341F #71861F
monochromatic
#081023 #142654 #1F3D86 #2A54B8 #4A73D5

Accessibility & contrast

On white

10.14
#1F3D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#1F3D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D86
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D86#FFFFFF#000000##FFFFFF
##1F3D861.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084689
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#004F5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3d86;
/* rgb */ color: rgb(31, 61, 134);
/* oklch */ color: oklch(38.3% 0.128 264.3);
Tailwind
colors: {
  custom: {
    50: '#6b72aa',
    500: '#1f3d86',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d86;
$custom-light: #6b72aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d86",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 134
  },
  "hsl": {
    "h": 222.524,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38262,
    "c": 0.12778,
    "h": 264.3
  },
  "luminance": 0.0535
}

Semantic roles & 50–950 ramp

primary
#1F3D86
secondary
#B89749
accent
#B642E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070710
muted
#7A7A7F

Preview Lab

Preview with #1F3D86

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

Preview Lab → · Contrast checker → · Palette generator →

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