#1F3891#1F3891

#1F3891 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.150 H 266.9°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#1F3891
RGBrgb(31, 56, 145)
HSLhsl(227, 65%, 35%)
HSVhsv(227, 79%, 57%)
CMYKcmyk(78.6%, 61.4%, 0%, 43.1%)
CIE-LABlab(27.19, 24.28, -51.80)
CIE-LCHlch(27.19, 57.21, 295.11°)
OKLaboklab(38.16% -0.0082 -0.1497)
OKLCHoklch(38.16% 0.15 266.9)
XYZxyz(7.0883, 5.1632, 27.4056)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3891 #91781F
analogous
#1F7191 #1F3891 #3F1F91
triadic
#1F3891 #911F38 #38911F
tetradic
#1F3891 #911F71 #91781F #1F913F
square
#1F3891 #911F71 #91781F #1F913F
split-complementary
#1F3891 #913F1F #71911F
monochromatic
#09112C #14255F #1F3891 #2A4BC3 #516FDA

Accessibility & contrast

On white

10.33
#1F3891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F3891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3891
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3891#FFFFFF#000000##FFFFFF
##1F38911.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004694
Deuteranopia (green-blind)
#003B8F
Tritanopia (blue-blind)
#004F5F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3891;
/* rgb */ color: rgb(31, 56, 145);
/* oklch */ color: oklch(38.2% 0.150 266.9);
Tailwind
colors: {
  custom: {
    50: '#6e6eb2',
    500: '#1f3891',
    950: '#000000',
  },
}
SCSS
$custom: #1f3891;
$custom-light: #6e6eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3891",
  "rgb": {
    "r": 31,
    "g": 56,
    "b": 145
  },
  "hsl": {
    "h": 226.842,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38157,
    "c": 0.14991,
    "h": 266.9
  },
  "luminance": 0.05164
}

Semantic roles & 50–950 ramp

primary
#1F3891
secondary
#BDA54F
accent
#C340E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3891

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

Preview Lab → · Contrast checker → · Palette generator →

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