#1F4E97#1F4E97

#1F4E97 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 43.4% C 0.130 H 259.2°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#1F4E97
RGBrgb(31, 78, 151)
HSLhsl(217, 66%, 36%)
HSVhsv(217, 79%, 59%)
CMYKcmyk(79.5%, 48.3%, 0%, 40.8%)
CIE-LABlab(33.93, 11.62, -44.55)
CIE-LCHlch(33.93, 46.04, 284.61°)
OKLaboklab(43.4% -0.0245 -0.128)
OKLCHoklch(43.4% 0.13 259.2)
XYZxyz(8.8733, 7.9734, 30.3435)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E97 #97681F
analogous
#1F8A97 #1F4E97 #2C1F97
triadic
#1F4E97 #971F4E #4E971F
tetradic
#1F4E97 #971F8A #97681F #1F972C
square
#1F4E97 #971F8A #97681F #1F972C
split-complementary
#1F4E97 #972C1F #8A971F
monochromatic
#0A1A31 #153464 #1F4E97 #2968CA #548ADC

Accessibility & contrast

On white

8.09
#1F4E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#1F4E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E97
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E97#FFFFFF#000000##FFFFFF
##1F4E971.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25569A
Deuteranopia (green-blind)
#004B96
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4e97;
/* rgb */ color: rgb(31, 78, 151);
/* oklch */ color: oklch(43.4% 0.130 259.2);
Tailwind
colors: {
  custom: {
    50: '#6e7fb6',
    500: '#1f4e97',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e97;
$custom-light: #6e7fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e97",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 151
  },
  "hsl": {
    "h": 216.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43403,
    "c": 0.13031,
    "h": 259.2
  },
  "luminance": 0.07974
}

Semantic roles & 50–950 ramp

primary
#1F4E97
secondary
#BF9552
accent
#A63FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4E97

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

Preview Lab → · Contrast checker → · Palette generator →

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