#1F50A4#1F50A4

#1F50A4 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.146 H 260.5°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#1F50A4
RGBrgb(31, 80, 164)
HSLhsl(218, 68%, 38%)
HSVhsv(218, 81%, 64%)
CMYKcmyk(81.1%, 51.2%, 0%, 35.7%)
CIE-LABlab(35.42, 15.46, -49.98)
CIE-LCHlch(35.42, 52.32, 287.19°)
OKLaboklab(44.83% -0.0241 -0.1439)
OKLCHoklch(44.83% 0.146 260.5)
XYZxyz(10.1321, 8.7078, 36.2615)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F50A4 #A4731F
analogous
#1F92A4 #1F50A4 #311FA4
triadic
#1F50A4 #A41F50 #50A41F
tetradic
#1F50A4 #A41F92 #A4731F #1FA431
square
#1F50A4 #A41F92 #A4731F #1FA431
split-complementary
#1F50A4 #A4311F #92A41F
monochromatic
#0C1E3D #153771 #1F50A4 #2A69D7 #5D8DE0

Accessibility & contrast

On white

7.66
#1F50A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#1F50A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F50A4
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F50A4#FFFFFF#000000##FFFFFF
##1F50A41.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5AA7
Deuteranopia (green-blind)
#004EA2
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #1f50a4;
/* rgb */ color: rgb(31, 80, 164);
/* oklch */ color: oklch(44.8% 0.146 260.5);
Tailwind
colors: {
  custom: {
    50: '#7180c0',
    500: '#1f50a4',
    950: '#000000',
  },
}
SCSS
$custom: #1f50a4;
$custom-light: #7180c0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f50a4",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 164
  },
  "hsl": {
    "h": 217.895,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44833,
    "c": 0.14592,
    "h": 260.5
  },
  "luminance": 0.08709
}

Semantic roles & 50–950 ramp

primary
#1F50A4
secondary
#C59D5A
accent
#AB3DEB
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #1F50A4

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

Preview Lab → · Contrast checker → · Palette generator →

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