#1F50A1#1F50A1

#1F50A1 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.6% C 0.142 H 260.0°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#1F50A1
RGBrgb(31, 80, 161)
HSLhsl(217, 68%, 38%)
HSVhsv(217, 81%, 63%)
CMYKcmyk(80.7%, 50.3%, 0%, 36.9%)
CIE-LABlab(35.20, 14.26, -48.53)
CIE-LCHlch(35.20, 50.58, 286.38°)
OKLaboklab(44.6% -0.0246 -0.1396)
OKLCHoklch(44.6% 0.142 260)
XYZxyz(9.8644, 8.6007, 34.8515)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F50A1 #A1701F
analogous
#1F91A1 #1F50A1 #2F1FA1
triadic
#1F50A1 #A11F50 #50A11F
tetradic
#1F50A1 #A11F91 #A1701F #1FA12F
square
#1F50A1 #A11F91 #A1701F #1FA12F
split-complementary
#1F50A1 #A12F1F #91A11F
monochromatic
#0B1D3A #15366E #1F50A1 #2969D4 #5B8DDF

Accessibility & contrast

On white

7.72
#1F50A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#1F50A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F50A1
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F50A1#FFFFFF#000000##FFFFFF
##1F50A11.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F59A4
Deuteranopia (green-blind)
#004D9F
Tritanopia (blue-blind)
#006471
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f50a1;
/* rgb */ color: rgb(31, 80, 161);
/* oklch */ color: oklch(44.6% 0.142 260.0);
Tailwind
colors: {
  custom: {
    50: '#7080bd',
    500: '#1f50a1',
    950: '#000000',
  },
}
SCSS
$custom: #1f50a1;
$custom-light: #7080bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f50a1",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 161
  },
  "hsl": {
    "h": 217.385,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.44604,
    "c": 0.14177,
    "h": 260
  },
  "luminance": 0.08602
}

Semantic roles & 50–950 ramp

primary
#1F50A1
secondary
#C49B58
accent
#A93DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F50A1

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

Preview Lab → · Contrast checker → · Palette generator →

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