#1F4D99#1F4D99

#1F4D99 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.3% C 0.134 H 260.0°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#1F4D99
RGBrgb(31, 77, 153)
HSLhsl(217, 66%, 36%)
HSVhsv(217, 80%, 60%)
CMYKcmyk(79.7%, 49.7%, 0%, 40%)
CIE-LABlab(33.77, 13.09, -46.02)
CIE-LCHlch(33.77, 47.85, 285.88°)
OKLaboklab(43.33% -0.0234 -0.1323)
OKLCHoklch(43.33% 0.134 260)
XYZxyz(8.9666, 7.8979, 31.1827)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D99 #996B1F
analogous
#1F8A99 #1F4D99 #2E1F99
triadic
#1F4D99 #991F4D #4D991F
tetradic
#1F4D99 #991F8A #996B1F #1F992E
square
#1F4D99 #991F8A #996B1F #1F992E
split-complementary
#1F4D99 #992E1F #8A991F
monochromatic
#0A1A33 #153366 #1F4D99 #2967CC #5689DD

Accessibility & contrast

On white

8.14
#1F4D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#1F4D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D99
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D99#FFFFFF#000000##FFFFFF
##1F4D991.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559C
Deuteranopia (green-blind)
#004A97
Tritanopia (blue-blind)
#005F6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4d99;
/* rgb */ color: rgb(31, 77, 153);
/* oklch */ color: oklch(43.3% 0.134 260.0);
Tailwind
colors: {
  custom: {
    50: '#6e7eb8',
    500: '#1f4d99',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d99;
$custom-light: #6e7eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d99",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 153
  },
  "hsl": {
    "h": 217.377,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43326,
    "c": 0.13436,
    "h": 260
  },
  "luminance": 0.07899
}

Semantic roles & 50–950 ramp

primary
#1F4D99
secondary
#C09754
accent
#A93FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4D99

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

Preview Lab → · Contrast checker → · Palette generator →

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