#1F50A8#1F50A8

#1F50A8 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.151 H 261.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#1F50A8
RGBrgb(31, 80, 168)
HSLhsl(219, 69%, 39%)
HSVhsv(219, 82%, 66%)
CMYKcmyk(81.5%, 52.4%, 0%, 34.1%)
CIE-LABlab(35.70, 17.05, -51.91)
CIE-LCHlch(35.70, 54.64, 288.18°)
OKLaboklab(45.14% -0.0236 -0.1496)
OKLCHoklch(45.14% 0.151 261)
XYZxyz(10.4991, 8.8545, 38.1939)
Luminance0.0886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F50A8 #A8771F
analogous
#1F95A8 #1F50A8 #331FA8
triadic
#1F50A8 #A81F50 #50A81F
tetradic
#1F50A8 #A81F95 #A8771F #1FA833
square
#1F50A8 #A81F95 #A8771F #1FA833
split-complementary
#1F50A8 #A8331F #95A81F
monochromatic
#0C1F41 #153774 #1F50A8 #2C6AD8 #608EE2

Accessibility & contrast

On white

7.58
#1F50A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#1F50A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F50A8
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F50A8#FFFFFF#000000##FFFFFF
##1F50A81.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135BAB
Deuteranopia (green-blind)
#004EA6
Tritanopia (blue-blind)
#006574
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #1f50a8;
/* rgb */ color: rgb(31, 80, 168);
/* oklch */ color: oklch(45.1% 0.151 261.0);
Tailwind
colors: {
  custom: {
    50: '#7280c2',
    500: '#1f50a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f50a8;
$custom-light: #7280c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f50a8",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 168
  },
  "hsl": {
    "h": 218.54,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45144,
    "c": 0.15142,
    "h": 261
  },
  "luminance": 0.08856
}

Semantic roles & 50–950 ramp

primary
#1F50A8
secondary
#C6A05D
accent
#AD3CEC
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F50A8

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

Preview Lab → · Contrast checker → · Palette generator →

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