#1F50A6#1F50A6

#1F50A6 is a dark, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.149 H 260.8°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#1F50A6
RGBrgb(31, 80, 166)
HSLhsl(218, 69%, 39%)
HSVhsv(218, 81%, 65%)
CMYKcmyk(81.3%, 51.8%, 0%, 34.9%)
CIE-LABlab(35.56, 16.25, -50.95)
CIE-LCHlch(35.56, 53.48, 287.70°)
OKLaboklab(44.99% -0.0239 -0.1467)
OKLCHoklch(44.99% 0.149 260.8)
XYZxyz(10.3142, 8.7806, 37.2202)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F50A6 #A6751F
analogous
#1F93A6 #1F50A6 #311FA6
triadic
#1F50A6 #A61F50 #50A61F
tetradic
#1F50A6 #A61F93 #A6751F #1FA631
square
#1F50A6 #A61F93 #A6751F #1FA631
split-complementary
#1F50A6 #A6311F #93A61F
monochromatic
#0C1E3F #153772 #1F50A6 #2B69D7 #5E8EE1

Accessibility & contrast

On white

7.62
#1F50A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#1F50A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F50A6
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F50A6#FFFFFF#000000##FFFFFF
##1F50A61.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175AA9
Deuteranopia (green-blind)
#004EA4
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1f50a6;
/* rgb */ color: rgb(31, 80, 166);
/* oklch */ color: oklch(45.0% 0.149 260.8);
Tailwind
colors: {
  custom: {
    50: '#7180c1',
    500: '#1f50a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f50a6;
$custom-light: #7180c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f50a6",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 166
  },
  "hsl": {
    "h": 218.222,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44988,
    "c": 0.14868,
    "h": 260.8
  },
  "luminance": 0.08782
}

Semantic roles & 50–950 ramp

primary
#1F50A6
secondary
#C59F5B
accent
#AC3CEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F50A6

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

Preview Lab → · Contrast checker → · Palette generator →

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