#1F50B4#1F50B4

#1F50B4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.168 H 262.3°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#1F50B4
RGBrgb(31, 80, 180)
HSLhsl(220, 71%, 41%)
HSVhsv(220, 83%, 71%)
CMYKcmyk(82.8%, 55.6%, 0%, 29.4%)
CIE-LABlab(36.60, 21.79, -57.57)
CIE-LCHlch(36.60, 61.56, 290.73°)
OKLaboklab(46.11% -0.0224 -0.1662)
OKLCHoklch(46.11% 0.168 262.3)
XYZxyz(11.6690, 9.3225, 44.3556)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F50B4 #B4831F
analogous
#1F9BB4 #1F50B4 #381FB4
triadic
#1F50B4 #B41F50 #50B41F
tetradic
#1F50B4 #B41F9B #B4831F #1FB438
square
#1F50B4 #B41F9B #B4831F #1FB438
split-complementary
#1F50B4 #B4381F #9BB41F
monochromatic
#0D224C #163980 #1F50B4 #346BDC #6891E5

Accessibility & contrast

On white

7.33
#1F50B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#1F50B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F50B4
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F50B4#FFFFFF#000000##FFFFFF
##1F50B41.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #1f50b4;
/* rgb */ color: rgb(31, 80, 180);
/* oklch */ color: oklch(46.1% 0.168 262.3);
Tailwind
colors: {
  custom: {
    50: '#7580cb',
    500: '#1f50b4',
    950: '#000000',
  },
}
SCSS
$custom: #1f50b4;
$custom-light: #7580cb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f50b4",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 180
  },
  "hsl": {
    "h": 220.268,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46106,
    "c": 0.16774,
    "h": 262.3
  },
  "luminance": 0.09324
}

Semantic roles & 50–950 ramp

primary
#1F50B4
secondary
#CBA964
accent
#B33AED
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #1F50B4

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

Preview Lab → · Contrast checker → · Palette generator →

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