#1F4A96#1F4A96

#1F4A96 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.4% C 0.134 H 260.8°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#1F4A96
RGBrgb(31, 74, 150)
HSLhsl(218, 66%, 35%)
HSVhsv(218, 79%, 59%)
CMYKcmyk(79.3%, 50.7%, 0%, 41.2%)
CIE-LABlab(32.68, 13.92, -45.96)
CIE-LCHlch(32.68, 48.02, 286.85°)
OKLaboklab(42.42% -0.0214 -0.1322)
OKLCHoklch(42.42% 0.134 260.8)
XYZxyz(8.5169, 7.3899, 29.8258)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4A96 #966B1F
analogous
#1F8696 #1F4A96 #2F1F96
triadic
#1F4A96 #961F4A #4A961F
tetradic
#1F4A96 #961F86 #966B1F #1F962F
square
#1F4A96 #961F86 #966B1F #1F962F
split-complementary
#1F4A96 #962F1F #86961F
monochromatic
#0A1831 #153163 #1F4A96 #2963C9 #5485DC

Accessibility & contrast

On white

8.47
#1F4A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#1F4A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4A96
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4A96#FFFFFF#000000##FFFFFF
##1F4A961.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5399
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#005C69
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #1f4a96;
/* rgb */ color: rgb(31, 74, 150);
/* oklch */ color: oklch(42.4% 0.134 260.8);
Tailwind
colors: {
  custom: {
    50: '#6e7bb5',
    500: '#1f4a96',
    950: '#000000',
  },
}
SCSS
$custom: #1f4a96;
$custom-light: #6e7bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4a96",
  "rgb": {
    "r": 31,
    "g": 74,
    "b": 150
  },
  "hsl": {
    "h": 218.319,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42423,
    "c": 0.13391,
    "h": 260.8
  },
  "luminance": 0.07391
}

Semantic roles & 50–950 ramp

primary
#1F4A96
secondary
#BF9852
accent
#AB3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4A96

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

Preview Lab → · Contrast checker → · Palette generator →

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