#1F3F86#1F3F86

#1F3F86 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.7% C 0.125 H 263.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#1F3F86
RGBrgb(31, 63, 134)
HSLhsl(221, 62%, 32%)
HSVhsv(221, 77%, 53%)
CMYKcmyk(76.9%, 53%, 0%, 47.5%)
CIE-LABlab(28.29, 15.05, -43.22)
CIE-LCHlch(28.29, 45.76, 289.21°)
OKLaboklab(38.71% -0.0143 -0.1243)
OKLCHoklch(38.71% 0.125 263.4)
XYZxyz(6.6441, 5.5668, 23.2740)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F86 #86661F
analogous
#1F7386 #1F3F86 #321F86
triadic
#1F3F86 #861F3F #3F861F
tetradic
#1F3F86 #861F73 #86661F #1F8632
square
#1F3F86 #861F73 #86661F #1F8632
split-complementary
#1F3F86 #86321F #73861F
monochromatic
#081023 #142854 #1F3F86 #2A56B8 #4A75D5

Accessibility & contrast

On white

9.94
#1F3F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F3F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F86
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F86#FFFFFF#000000##FFFFFF
##1F3F861.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114889
Deuteranopia (green-blind)
#003E85
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3f86;
/* rgb */ color: rgb(31, 63, 134);
/* oklch */ color: oklch(38.7% 0.125 263.4);
Tailwind
colors: {
  custom: {
    50: '#6a73aa',
    500: '#1f3f86',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f86;
$custom-light: #6a73aa;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f86",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 134
  },
  "hsl": {
    "h": 221.359,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38706,
    "c": 0.12515,
    "h": 263.4
  },
  "luminance": 0.05568
}

Semantic roles & 50–950 ramp

primary
#1F3F86
secondary
#B89549
accent
#B342E5
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #1F3F86

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

Preview Lab → · Contrast checker → · Palette generator →

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