#1F3791#1F3791

#1F3791 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.0% C 0.151 H 267.1°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#1F3791
RGBrgb(31, 55, 145)
HSLhsl(227, 65%, 35%)
HSVhsv(227, 79%, 57%)
CMYKcmyk(78.6%, 62.1%, 0%, 43.1%)
CIE-LABlab(26.93, 24.96, -52.24)
CIE-LCHlch(26.93, 57.90, 295.54°)
OKLaboklab(37.96% -0.0075 -0.151)
OKLCHoklch(37.96% 0.151 267.1)
XYZxyz(7.0403, 5.0672, 27.3896)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3791 #91791F
analogous
#1F7091 #1F3791 #401F91
triadic
#1F3791 #911F37 #37911F
tetradic
#1F3791 #911F70 #91791F #1F9140
square
#1F3791 #911F70 #91791F #1F9140
split-complementary
#1F3791 #91401F #70911F
monochromatic
#09112C #14245F #1F3791 #2A4AC3 #516EDA

Accessibility & contrast

On white

10.43
#1F3791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F3791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3791
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3791#FFFFFF#000000##FFFFFF
##1F37911.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004594
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f3791;
/* rgb */ color: rgb(31, 55, 145);
/* oklch */ color: oklch(38.0% 0.151 267.1);
Tailwind
colors: {
  custom: {
    50: '#6e6db2',
    500: '#1f3791',
    950: '#000000',
  },
}
SCSS
$custom: #1f3791;
$custom-light: #6e6db2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3791",
  "rgb": {
    "r": 31,
    "g": 55,
    "b": 145
  },
  "hsl": {
    "h": 227.368,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.37956,
    "c": 0.15118,
    "h": 267.1
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

primary
#1F3791
secondary
#BDA64F
accent
#C440E8
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080711
muted
#7B7A80

Preview Lab

Preview with #1F3791

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

Preview Lab → · Contrast checker → · Palette generator →

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