#1F50A7#1F50A7

#1F50A7 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.150 H 260.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#1F50A7
RGBrgb(31, 80, 167)
HSLhsl(218, 69%, 39%)
HSVhsv(218, 81%, 65%)
CMYKcmyk(81.4%, 52.1%, 0%, 34.5%)
CIE-LABlab(35.63, 16.65, -51.43)
CIE-LCHlch(35.63, 54.06, 287.94°)
OKLaboklab(45.07% -0.0237 -0.1482)
OKLCHoklch(45.07% 0.15 260.9)
XYZxyz(10.4063, 8.8174, 37.7052)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F50A7 #A7761F
analogous
#1F94A7 #1F50A7 #321FA7
triadic
#1F50A7 #A71F50 #50A71F
tetradic
#1F50A7 #A71F94 #A7761F #1FA732
square
#1F50A7 #A71F94 #A7761F #1FA732
split-complementary
#1F50A7 #A7321F #94A71F
monochromatic
#0C1F40 #153773 #1F50A7 #2B6AD8 #5F8EE1

Accessibility & contrast

On white

7.60
#1F50A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F50A7
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F50A7#FFFFFF#000000##FFFFFF
##1F50A71.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155AAA
Deuteranopia (green-blind)
#004EA5
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1f50a7;
/* rgb */ color: rgb(31, 80, 167);
/* oklch */ color: oklch(45.1% 0.150 260.9);
Tailwind
colors: {
  custom: {
    50: '#7280c2',
    500: '#1f50a7',
    950: '#000000',
  },
}
SCSS
$custom: #1f50a7;
$custom-light: #7280c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f50a7",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 167
  },
  "hsl": {
    "h": 218.382,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45066,
    "c": 0.15005,
    "h": 260.9
  },
  "luminance": 0.08819
}

Semantic roles & 50–950 ramp

primary
#1F50A7
secondary
#C6A05C
accent
#AC3CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F50A7

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

Preview Lab → · Contrast checker → · Palette generator →

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