#1F4891#1F4891

#1F4891 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.6% C 0.129 H 260.9°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#1F4891
RGBrgb(31, 72, 145)
HSLhsl(218, 65%, 35%)
HSVhsv(218, 79%, 57%)
CMYKcmyk(78.6%, 50.3%, 0%, 43.1%)
CIE-LABlab(31.74, 13.28, -44.43)
CIE-LCHlch(31.74, 46.37, 286.64°)
OKLaboklab(41.59% -0.0204 -0.1277)
OKLCHoklch(41.59% 0.129 260.9)
XYZxyz(7.9914, 6.9695, 27.7066)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4891 #91681F
analogous
#1F8191 #1F4891 #2F1F91
triadic
#1F4891 #911F48 #48911F
tetradic
#1F4891 #911F81 #91681F #1F912F
square
#1F4891 #911F81 #91681F #1F912F
split-complementary
#1F4891 #912F1F #81911F
monochromatic
#09162C #142F5F #1F4891 #2A61C3 #5182DA

Accessibility & contrast

On white

8.77
#1F4891 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#1F4891 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4891
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4891#FFFFFF#000000##FFFFFF
##1F48911.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5094
Deuteranopia (green-blind)
#004690
Tritanopia (blue-blind)
#005965
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4891;
/* rgb */ color: rgb(31, 72, 145);
/* oklch */ color: oklch(41.6% 0.129 260.9);
Tailwind
colors: {
  custom: {
    50: '#6d7ab2',
    500: '#1f4891',
    950: '#000000',
  },
}
SCSS
$custom: #1f4891;
$custom-light: #6d7ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4891",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 145
  },
  "hsl": {
    "h": 218.421,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.4159,
    "c": 0.12936,
    "h": 260.9
  },
  "luminance": 0.0697
}

Semantic roles & 50–950 ramp

primary
#1F4891
secondary
#BD954F
accent
#AB40E8
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4891

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

Preview Lab → · Contrast checker → · Palette generator →

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