#1F4996#1F4996

#1F4996 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.2% C 0.135 H 261.3°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#1F4996
RGBrgb(31, 73, 150)
HSLhsl(219, 66%, 35%)
HSVhsv(219, 79%, 59%)
CMYKcmyk(79.3%, 51.3%, 0%, 41.2%)
CIE-LABlab(32.39, 14.60, -46.43)
CIE-LCHlch(32.39, 48.68, 287.46°)
OKLaboklab(42.2% -0.0206 -0.1336)
OKLCHoklch(42.2% 0.135 261.3)
XYZxyz(8.4507, 7.2574, 29.8037)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4996 #966C1F
analogous
#1F8496 #1F4996 #311F96
triadic
#1F4996 #961F49 #49961F
tetradic
#1F4996 #961F84 #966C1F #1F9631
square
#1F4996 #961F84 #966C1F #1F9631
split-complementary
#1F4996 #96311F #84961F
monochromatic
#0A1831 #153063 #1F4996 #2962C9 #5484DC

Accessibility & contrast

On white

8.57
#1F4996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#1F4996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4996
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4996#FFFFFF#000000##FFFFFF
##1F49961.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195299
Deuteranopia (green-blind)
#004794
Tritanopia (blue-blind)
#005C68
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #1f4996;
/* rgb */ color: rgb(31, 73, 150);
/* oklch */ color: oklch(42.2% 0.135 261.3);
Tailwind
colors: {
  custom: {
    50: '#6e7bb5',
    500: '#1f4996',
    950: '#000000',
  },
}
SCSS
$custom: #1f4996;
$custom-light: #6e7bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4996",
  "rgb": {
    "r": 31,
    "g": 73,
    "b": 150
  },
  "hsl": {
    "h": 218.824,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42199,
    "c": 0.13518,
    "h": 261.3
  },
  "luminance": 0.07258
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F4996

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

Preview Lab → · Contrast checker → · Palette generator →

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