#1F4A99#1F4A99

#1F4A99 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 42.7% C 0.138 H 261.3°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#1F4A99
RGBrgb(31, 74, 153)
HSLhsl(219, 66%, 36%)
HSVhsv(219, 80%, 60%)
CMYKcmyk(79.7%, 51.6%, 0%, 40%)
CIE-LABlab(32.89, 15.12, -47.44)
CIE-LCHlch(32.89, 49.79, 287.68°)
OKLaboklab(42.66% -0.0209 -0.1365)
OKLCHoklch(42.66% 0.138 261.3)
XYZxyz(8.7615, 7.4877, 31.1143)
Luminance0.0749 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A99 #996E1F
analogous
#1F8799 #1F4A99 #311F99
triadic
#1F4A99 #991F4A #4A991F
tetradic
#1F4A99 #991F87 #996E1F #1F9931
square
#1F4A99 #991F87 #996E1F #1F9931
split-complementary
#1F4A99 #99311F #87991F
monochromatic
#0A1933 #153166 #1F4A99 #2963CC #5685DD

Accessibility & contrast

On white

8.41
#1F4A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F4A99
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A99#FFFFFF#000000##FFFFFF
##1F4A991.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18539C
Deuteranopia (green-blind)
#004897
Tritanopia (blue-blind)
#005D6A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4a99;
/* rgb */ color: rgb(31, 74, 153);
/* oklch */ color: oklch(42.7% 0.138 261.3);
Tailwind
colors: {
  custom: {
    50: '#6f7bb8',
    500: '#1f4a99',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a99;
$custom-light: #6f7bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a99",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 153
  },
  "hsl": {
    "h": 218.852,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.42655,
    "c": 0.13814,
    "h": 261.3
  },
  "luminance": 0.07489
}

Semantic roles & 50–950 ramp

primary
#1F4A99
secondary
#C09A54
accent
#AD3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4A99

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

Preview Lab → · Contrast checker → · Palette generator →

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