#1F4896#1F4896

#1F4896 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.0% C 0.136 H 261.7°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#1F4896
RGBrgb(31, 72, 150)
HSLhsl(219, 66%, 35%)
HSVhsv(219, 79%, 59%)
CMYKcmyk(79.3%, 52%, 0%, 41.2%)
CIE-LABlab(32.09, 15.28, -46.90)
CIE-LCHlch(32.09, 49.33, 288.05°)
OKLaboklab(41.98% -0.0197 -0.135)
OKLCHoklch(41.98% 0.136 261.7)
XYZxyz(8.3855, 7.1271, 29.7820)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4896 #966D1F
analogous
#1F8396 #1F4896 #321F96
triadic
#1F4896 #961F48 #48961F
tetradic
#1F4896 #961F83 #966D1F #1F9632
square
#1F4896 #961F83 #966D1F #1F9632
split-complementary
#1F4896 #96321F #83961F
monochromatic
#0A1731 #153063 #1F4896 #2960C9 #5483DC

Accessibility & contrast

On white

8.66
#1F4896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#1F4896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4896
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4896#FFFFFF#000000##FFFFFF
##1F48961.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165199
Deuteranopia (green-blind)
#004694
Tritanopia (blue-blind)
#005B68
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #1f4896;
/* rgb */ color: rgb(31, 72, 150);
/* oklch */ color: oklch(42.0% 0.136 261.7);
Tailwind
colors: {
  custom: {
    50: '#6e7ab5',
    500: '#1f4896',
    950: '#000000',
  },
}
SCSS
$custom: #1f4896;
$custom-light: #6e7ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4896",
  "rgb": {
    "r": 31,
    "g": 72,
    "b": 150
  },
  "hsl": {
    "h": 219.328,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.41977,
    "c": 0.13645,
    "h": 261.7
  },
  "luminance": 0.07128
}

Semantic roles & 50–950 ramp

primary
#1F4896
secondary
#BF9952
accent
#AE3FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4896

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

Preview Lab → · Contrast checker → · Palette generator →

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