#1F50C2#1F50C2

#1F50C2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.186 H 263.4°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#1F50C2
RGBrgb(31, 80, 194)
HSLhsl(222, 72%, 44%)
HSVhsv(222, 84%, 76%)
CMYKcmyk(84%, 58.8%, 0%, 23.9%)
CIE-LABlab(37.70, 27.25, -63.99)
CIE-LCHlch(37.70, 69.55, 293.06°)
OKLaboklab(47.28% -0.0215 -0.1851)
OKLCHoklch(47.28% 0.186 263.4)
XYZxyz(13.1679, 9.9220, 52.2496)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F50C2 #C2911F
analogous
#1FA2C2 #1F50C2 #401FC2
triadic
#1F50C2 #C21F50 #50C21F
tetradic
#1F50C2 #C21FA2 #C2911F #1FC240
square
#1F50C2 #C21FA2 #C2911F #1FC240
split-complementary
#1F50C2 #C2401F #A2C21F
monochromatic
#0E2458 #173A8D #1F50C2 #3E6FE0 #7396E9

Accessibility & contrast

On white

7.04
#1F50C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#1F50C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F50C2
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F50C2#FFFFFF#000000##FFFFFF
##1F50C21.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #1f50c2;
/* rgb */ color: rgb(31, 80, 194);
/* oklch */ color: oklch(47.3% 0.186 263.4);
Tailwind
colors: {
  custom: {
    50: '#7980d5',
    500: '#1f50c2',
    950: '#000000',
  },
}
SCSS
$custom: #1f50c2;
$custom-light: #7980d5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f50c2",
  "rgb": {
    "r": 31,
    "g": 80,
    "b": 194
  },
  "hsl": {
    "h": 221.963,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47284,
    "c": 0.18632,
    "h": 263.4
  },
  "luminance": 0.09924
}

Semantic roles & 50–950 ramp

primary
#1F50C2
secondary
#CFB26D
accent
#B839EF
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #1F50C2

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

Preview Lab → · Contrast checker → · Palette generator →

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