#1F4699#1F4699

#1F4699 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 41.8% C 0.143 H 262.8°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#1F4699
RGBrgb(31, 70, 153)
HSLhsl(221, 66%, 36%)
HSVhsv(221, 80%, 60%)
CMYKcmyk(79.7%, 54.2%, 0%, 40%)
CIE-LABlab(31.74, 17.85, -49.30)
CIE-LCHlch(31.74, 52.43, 289.90°)
OKLaboklab(41.78% -0.0178 -0.1421)
OKLCHoklch(41.78% 0.143 262.8)
XYZxyz(8.5029, 6.9705, 31.0281)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4699 #99721F
analogous
#1F8399 #1F4699 #351F99
triadic
#1F4699 #991F46 #46991F
tetradic
#1F4699 #991F83 #99721F #1F9935
square
#1F4699 #991F83 #99721F #1F9935
split-complementary
#1F4699 #99351F #83991F
monochromatic
#0A1733 #152F66 #1F4699 #295DCC #5681DD

Accessibility & contrast

On white

8.77
#1F4699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#1F4699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4699
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4699#FFFFFF#000000##FFFFFF
##1F46991.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04519C
Deuteranopia (green-blind)
#004597
Tritanopia (blue-blind)
#005A68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4699;
/* rgb */ color: rgb(31, 70, 153);
/* oklch */ color: oklch(41.8% 0.143 262.8);
Tailwind
colors: {
  custom: {
    50: '#6f78b8',
    500: '#1f4699',
    950: '#000000',
  },
}
SCSS
$custom: #1f4699;
$custom-light: #6f78b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4699",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 153
  },
  "hsl": {
    "h": 220.82,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.41777,
    "c": 0.14322,
    "h": 262.8
  },
  "luminance": 0.06972
}

Semantic roles & 50–950 ramp

primary
#1F4699
secondary
#C09E54
accent
#B33FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4699

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

Preview Lab → · Contrast checker → · Palette generator →

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