#1F4791#1F4791

#1F4791 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.4% C 0.131 H 261.4°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#1F4791
RGBrgb(31, 71, 145)
HSLhsl(219, 65%, 35%)
HSVhsv(219, 79%, 57%)
CMYKcmyk(78.6%, 51%, 0%, 43.1%)
CIE-LABlab(31.44, 13.96, -44.91)
CIE-LCHlch(31.44, 47.03, 287.27°)
OKLaboklab(41.36% -0.0196 -0.1291)
OKLCHoklch(41.36% 0.131 261.4)
XYZxyz(7.9273, 6.8412, 27.6853)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4791 #91691F
analogous
#1F8091 #1F4791 #301F91
triadic
#1F4791 #911F47 #47911F
tetradic
#1F4791 #911F80 #91691F #1F9130
square
#1F4791 #911F80 #91691F #1F9130
split-complementary
#1F4791 #91301F #80911F
monochromatic
#09162C #142E5F #1F4791 #2A60C3 #5181DA

Accessibility & contrast

On white

8.87
#1F4791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#1F4791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4791
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4791#FFFFFF#000000##FFFFFF
##1F47911.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5094
Deuteranopia (green-blind)
#004590
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4791;
/* rgb */ color: rgb(31, 71, 145);
/* oklch */ color: oklch(41.4% 0.131 261.4);
Tailwind
colors: {
  custom: {
    50: '#6d79b2',
    500: '#1f4791',
    950: '#000000',
  },
}
SCSS
$custom: #1f4791;
$custom-light: #6d79b2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4791",
  "rgb": {
    "r": 31,
    "g": 71,
    "b": 145
  },
  "hsl": {
    "h": 218.947,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.41364,
    "c": 0.13063,
    "h": 261.4
  },
  "luminance": 0.06842
}

Semantic roles & 50–950 ramp

primary
#1F4791
secondary
#BD964F
accent
#AD40E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4791

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

Preview Lab → · Contrast checker → · Palette generator →

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