#1F4F96#1F4F96

#1F4F96 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.6% C 0.128 H 258.5°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#1F4F96
RGBrgb(31, 79, 150)
HSLhsl(216, 66%, 35%)
HSVhsv(216, 79%, 59%)
CMYKcmyk(79.3%, 47.3%, 0%, 41.2%)
CIE-LABlab(34.16, 10.55, -43.58)
CIE-LCHlch(34.16, 44.84, 283.61°)
OKLaboklab(43.56% -0.0255 -0.1251)
OKLCHoklch(43.56% 0.128 258.5)
XYZxyz(8.8641, 8.0842, 29.9415)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4F96 #96661F
analogous
#1F8A96 #1F4F96 #2A1F96
triadic
#1F4F96 #961F4F #4F961F
tetradic
#1F4F96 #961F8A #96661F #1F962A
square
#1F4F96 #961F8A #96661F #1F962A
split-complementary
#1F4F96 #962A1F #8A961F
monochromatic
#0A1A31 #153463 #1F4F96 #296AC9 #548BDC

Accessibility & contrast

On white

8.02
#1F4F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#1F4F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4F96
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4F96#FFFFFF#000000##FFFFFF
##1F4F961.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295699
Deuteranopia (green-blind)
#094B95
Tritanopia (blue-blind)
#00606B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4f96;
/* rgb */ color: rgb(31, 79, 150);
/* oklch */ color: oklch(43.6% 0.128 258.5);
Tailwind
colors: {
  custom: {
    50: '#6e7fb5',
    500: '#1f4f96',
    950: '#000000',
  },
}
SCSS
$custom: #1f4f96;
$custom-light: #6e7fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4f96",
  "rgb": {
    "r": 31,
    "g": 79,
    "b": 150
  },
  "hsl": {
    "h": 215.798,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43559,
    "c": 0.12766,
    "h": 258.5
  },
  "luminance": 0.08085
}

Semantic roles & 50–950 ramp

primary
#1F4F96
secondary
#BF9352
accent
#A43FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4F96

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

Preview Lab → · Contrast checker → · Palette generator →

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