#1F519F#1F519F

#1F519F is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.7% C 0.138 H 259.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#1F519F
RGBrgb(31, 81, 159)
HSLhsl(217, 67%, 37%)
HSVhsv(217, 81%, 62%)
CMYKcmyk(80.5%, 49.1%, 0%, 37.6%)
CIE-LABlab(35.36, 12.80, -47.08)
CIE-LCHlch(35.36, 48.79, 285.21°)
OKLaboklab(44.68% -0.0257 -0.1353)
OKLCHoklch(44.68% 0.138 259.3)
XYZxyz(9.7632, 8.6782, 33.9547)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F519F #9F6D1F
analogous
#1F919F #1F519F #2D1F9F
triadic
#1F519F #9F1F51 #519F1F
tetradic
#1F519F #9F1F91 #9F6D1F #1F9F2D
square
#1F519F #9F1F91 #9F6D1F #1F9F2D
split-complementary
#1F519F #9F2D1F #919F1F
monochromatic
#0B1D39 #15376C #1F519F #296BD2 #5A8EDF

Accessibility & contrast

On white

7.68
#1F519F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#1F519F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F519F
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F519F#FFFFFF#000000##FFFFFF
##1F519F1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2459A2
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#006470
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f519f;
/* rgb */ color: rgb(31, 81, 159);
/* oklch */ color: oklch(44.7% 0.138 259.3);
Tailwind
colors: {
  custom: {
    50: '#7081bc',
    500: '#1f519f',
    950: '#000000',
  },
}
SCSS
$custom: #1f519f;
$custom-light: #7081bc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f519f",
  "rgb": {
    "r": 31,
    "g": 81,
    "b": 159
  },
  "hsl": {
    "h": 216.563,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44677,
    "c": 0.13775,
    "h": 259.3
  },
  "luminance": 0.08679
}

Semantic roles & 50–950 ramp

primary
#1F519F
secondary
#C39957
accent
#A73EEA
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F519F

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

Preview Lab → · Contrast checker → · Palette generator →

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