#1F4E96#1F4E96

#1F4E96 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.3% C 0.129 H 259.0°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#1F4E96
RGBrgb(31, 78, 150)
HSLhsl(216, 66%, 35%)
HSVhsv(216, 79%, 59%)
CMYKcmyk(79.3%, 48%, 0%, 41.2%)
CIE-LABlab(33.86, 11.22, -44.06)
CIE-LCHlch(33.86, 45.46, 284.29°)
OKLaboklab(43.33% -0.0247 -0.1265)
OKLCHoklch(43.33% 0.129 259)
XYZxyz(8.7925, 7.9411, 29.9176)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4E96 #96671F
analogous
#1F8996 #1F4E96 #2C1F96
triadic
#1F4E96 #961F4E #4E961F
tetradic
#1F4E96 #961F89 #96671F #1F962C
square
#1F4E96 #961F89 #96671F #1F962C
split-complementary
#1F4E96 #962C1F #89961F
monochromatic
#0A1931 #153463 #1F4E96 #2968C9 #5489DC

Accessibility & contrast

On white

8.11
#1F4E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#1F4E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4E96
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4E96#FFFFFF#000000##FFFFFF
##1F4E961.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265599
Deuteranopia (green-blind)
#044B95
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #1f4e96;
/* rgb */ color: rgb(31, 78, 150);
/* oklch */ color: oklch(43.3% 0.129 259.0);
Tailwind
colors: {
  custom: {
    50: '#6e7fb5',
    500: '#1f4e96',
    950: '#000000',
  },
}
SCSS
$custom: #1f4e96;
$custom-light: #6e7fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4e96",
  "rgb": {
    "r": 31,
    "g": 78,
    "b": 150
  },
  "hsl": {
    "h": 216.303,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.4333,
    "c": 0.12889,
    "h": 259
  },
  "luminance": 0.07942
}

Semantic roles & 50–950 ramp

primary
#1F4E96
secondary
#BF9452
accent
#A63FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #1F4E96

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

Preview Lab → · Contrast checker → · Palette generator →

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