#1F519D#1F519D

#1F519D is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.5% C 0.135 H 258.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#1F519D
RGBrgb(31, 81, 157)
HSLhsl(216, 67%, 37%)
HSVhsv(216, 80%, 62%)
CMYKcmyk(80.3%, 48.4%, 0%, 38.4%)
CIE-LABlab(35.22, 12.00, -46.10)
CIE-LCHlch(35.22, 47.63, 284.59°)
OKLaboklab(44.53% -0.026 -0.1325)
OKLCHoklch(44.53% 0.135 258.9)
XYZxyz(9.5911, 8.6094, 33.0480)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F519D #9D6B1F
analogous
#1F909D #1F519D #2C1F9D
triadic
#1F519D #9D1F51 #519D1F
tetradic
#1F519D #9D1F90 #9D6B1F #1F9D2C
square
#1F519D #9D1F90 #9D6B1F #1F9D2C
split-complementary
#1F519D #9D2C1F #909D1F
monochromatic
#0B1C37 #15376A #1F519D #296BD0 #588DDE

Accessibility & contrast

On white

7.71
#1F519D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#1F519D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F519D
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F519D#FFFFFF#000000##FFFFFF
##1F519D1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2659A0
Deuteranopia (green-blind)
#004D9B
Tritanopia (blue-blind)
#00636F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f519d;
/* rgb */ color: rgb(31, 81, 157);
/* oklch */ color: oklch(44.5% 0.135 258.9);
Tailwind
colors: {
  custom: {
    50: '#6f81ba',
    500: '#1f519d',
    950: '#000000',
  },
}
SCSS
$custom: #1f519d;
$custom-light: #6f81ba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f519d",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 157
  },
  "hsl": {
    "h": 216.19,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.44529,
    "c": 0.13497,
    "h": 258.9
  },
  "luminance": 0.0861
}

Semantic roles & 50–950 ramp

primary
#1F519D
secondary
#C29756
accent
#A63EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F519D

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

Preview Lab → · Contrast checker → · Palette generator →

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