#1F4D96#1F4D96

#1F4D96 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.1% C 0.130 H 259.4°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#1F4D96
RGBrgb(31, 77, 150)
HSLhsl(217, 66%, 35%)
HSVhsv(217, 79%, 59%)
CMYKcmyk(79.3%, 48.7%, 0%, 41.2%)
CIE-LABlab(33.56, 11.89, -44.53)
CIE-LCHlch(33.56, 46.10, 284.95°)
OKLaboklab(43.1% -0.0238 -0.1279)
OKLCHoklch(43.1% 0.13 259.4)
XYZxyz(8.7220, 7.8001, 29.8941)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4D96 #96681F
analogous
#1F8896 #1F4D96 #2D1F96
triadic
#1F4D96 #961F4D #4D961F
tetradic
#1F4D96 #961F88 #96681F #1F962D
square
#1F4D96 #961F88 #96681F #1F962D
split-complementary
#1F4D96 #962D1F #88961F
monochromatic
#0A1931 #153363 #1F4D96 #2967C9 #5488DC

Accessibility & contrast

On white

8.20
#1F4D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#1F4D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4D96
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4D96#FFFFFF#000000##FFFFFF
##1F4D961.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245599
Deuteranopia (green-blind)
#004A95
Tritanopia (blue-blind)
#005E6A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #1f4d96;
/* rgb */ color: rgb(31, 77, 150);
/* oklch */ color: oklch(43.1% 0.130 259.4);
Tailwind
colors: {
  custom: {
    50: '#6e7eb5',
    500: '#1f4d96',
    950: '#000000',
  },
}
SCSS
$custom: #1f4d96;
$custom-light: #6e7eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4d96",
  "rgb": {
    "r": 31,
    "g": 77,
    "b": 150
  },
  "hsl": {
    "h": 216.807,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43101,
    "c": 0.13014,
    "h": 259.4
  },
  "luminance": 0.07801
}

Semantic roles & 50–950 ramp

primary
#1F4D96
secondary
#BF9552
accent
#A73FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080911
muted
#7B7B80

Preview Lab

Preview with #1F4D96

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

Preview Lab → · Contrast checker → · Palette generator →

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