#1F4F99#1F4F99

#1F4F99 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.8% C 0.132 H 259.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#1F4F99
RGBrgb(31, 79, 153)
HSLhsl(216, 66%, 36%)
HSVhsv(216, 80%, 60%)
CMYKcmyk(79.7%, 48.4%, 0%, 40%)
CIE-LABlab(34.36, 11.74, -45.07)
CIE-LCHlch(34.36, 46.58, 284.61°)
OKLaboklab(43.78% -0.025 -0.1295)
OKLCHoklch(43.78% 0.132 259.1)
XYZxyz(9.1087, 8.1821, 31.2301)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F99 #99691F
analogous
#1F8C99 #1F4F99 #2C1F99
triadic
#1F4F99 #991F4F #4F991F
tetradic
#1F4F99 #991F8C #99691F #1F992C
square
#1F4F99 #991F8C #99691F #1F992C
split-complementary
#1F4F99 #992C1F #8C991F
monochromatic
#0A1A33 #153566 #1F4F99 #2969CC #568BDD

Accessibility & contrast

On white

7.96
#1F4F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#1F4F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F99
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F99#FFFFFF#000000##FFFFFF
##1F4F991.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26579C
Deuteranopia (green-blind)
#004C98
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #1f4f99;
/* rgb */ color: rgb(31, 79, 153);
/* oklch */ color: oklch(43.8% 0.132 259.1);
Tailwind
colors: {
  custom: {
    50: '#6e7fb7',
    500: '#1f4f99',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f99;
$custom-light: #6e7fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f99",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 153
  },
  "hsl": {
    "h": 216.393,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43779,
    "c": 0.13186,
    "h": 259.1
  },
  "luminance": 0.08183
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4F99

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

Preview Lab → · Contrast checker → · Palette generator →

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