#1F4C91#1F4C91

#1F4C91 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.5% C 0.124 H 258.9°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#1F4C91
RGBrgb(31, 76, 145)
HSLhsl(216, 65%, 35%)
HSVhsv(216, 79%, 57%)
CMYKcmyk(78.6%, 47.6%, 0%, 43.1%)
CIE-LABlab(32.93, 10.57, -42.52)
CIE-LCHlch(32.93, 43.81, 283.96°)
OKLaboklab(42.5% -0.0238 -0.122)
OKLCHoklch(42.5% 0.124 258.9)
XYZxyz(8.2585, 7.5036, 27.7957)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4C91 #91641F
analogous
#1F8591 #1F4C91 #2B1F91
triadic
#1F4C91 #911F4C #4C911F
tetradic
#1F4C91 #911F85 #91641F #1F912B
square
#1F4C91 #911F85 #91641F #1F912B
split-complementary
#1F4C91 #912B1F #85911F
monochromatic
#09172C #14325F #1F4C91 #2A66C3 #5187DA

Accessibility & contrast

On white

8.40
#1F4C91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#1F4C91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4C91
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4C91#FFFFFF#000000##FFFFFF
##1F4C911.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275394
Deuteranopia (green-blind)
#094990
Tritanopia (blue-blind)
#005C67
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4c91;
/* rgb */ color: rgb(31, 76, 145);
/* oklch */ color: oklch(42.5% 0.124 258.9);
Tailwind
colors: {
  custom: {
    50: '#6c7db2',
    500: '#1f4c91',
    950: '#000000',
  },
}
SCSS
$custom: #1f4c91;
$custom-light: #6c7db2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4c91",
  "rgb": {
    "r": 31,
    "g": 76,
    "b": 145
  },
  "hsl": {
    "h": 216.316,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.42503,
    "c": 0.12433,
    "h": 258.9
  },
  "luminance": 0.07505
}

Semantic roles & 50–950 ramp

primary
#1F4C91
secondary
#BD914F
accent
#A640E8
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4C91

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

Preview Lab → · Contrast checker → · Palette generator →

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