#1F4696#1F4696

#1F4696 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 41.5% C 0.139 H 262.5°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#1F4696
RGBrgb(31, 70, 150)
HSLhsl(220, 66%, 35%)
HSVhsv(220, 79%, 59%)
CMYKcmyk(79.3%, 53.3%, 0%, 41.2%)
CIE-LABlab(31.52, 16.65, -47.84)
CIE-LCHlch(31.52, 50.66, 289.19°)
OKLaboklab(41.54% -0.0182 -0.1378)
OKLCHoklch(41.54% 0.139 262.5)
XYZxyz(8.2583, 6.8727, 29.7396)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4696 #966F1F
analogous
#1F8196 #1F4696 #331F96
triadic
#1F4696 #961F46 #46961F
tetradic
#1F4696 #961F81 #966F1F #1F9633
square
#1F4696 #961F81 #966F1F #1F9633
split-complementary
#1F4696 #96331F #81961F
monochromatic
#0A1731 #152E63 #1F4696 #295EC9 #5480DC

Accessibility & contrast

On white

8.84
#1F4696 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#1F4696 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4696
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4696#FFFFFF#000000##FFFFFF
##1F46961.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5099
Deuteranopia (green-blind)
#004594
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f4696;
/* rgb */ color: rgb(31, 70, 150);
/* oklch */ color: oklch(41.5% 0.139 262.5);
Tailwind
colors: {
  custom: {
    50: '#6e78b5',
    500: '#1f4696',
    950: '#000000',
  },
}
SCSS
$custom: #1f4696;
$custom-light: #6e78b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4696",
  "rgb": {
    "r": 31,
    "g": 70,
    "b": 150
  },
  "hsl": {
    "h": 220.336,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41535,
    "c": 0.139,
    "h": 262.5
  },
  "luminance": 0.06874
}

Semantic roles & 50–950 ramp

primary
#1F4696
secondary
#BF9B52
accent
#B13FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4696

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

Preview Lab → · Contrast checker → · Palette generator →

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