#2F50C4#2F50C4

#2F50C4 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.0% C 0.185 H 266.9°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2F50C4
RGBrgb(47, 80, 196)
HSLhsl(227, 61%, 48%)
HSVhsv(227, 76%, 77%)
CMYKcmyk(76%, 59.2%, 0%, 23.1%)
CIE-LABlab(38.42, 29.50, -63.96)
CIE-LCHlch(38.42, 70.43, 294.76°)
OKLaboklab(48.03% -0.01 -0.1847)
OKLCHoklch(48.03% 0.185 266.9)
XYZxyz(14.0013, 10.3256, 53.4690)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50C4 #C4A32F
analogous
#2F9BC4 #2F50C4 #582FC4
triadic
#2F50C4 #C42F50 #50C42F
tetradic
#2F50C4 #C42F9B #C4A32F #2FC458
square
#2F50C4 #C42F9B #C4A32F #2FC458
split-complementary
#2F50C4 #C4582F #9BC42F
monochromatic
#172861 #233C93 #2F50C4 #5975D7 #8A9EE3

Accessibility & contrast

On white

6.85
#2F50C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2F50C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F50C4
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50C4#FFFFFF#000000##FFFFFF
##2F50C41.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#0054C2
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f50c4;
/* rgb */ color: rgb(47, 80, 196);
/* oklch */ color: oklch(48.0% 0.185 266.9);
Tailwind
colors: {
  custom: {
    50: '#7e80d7',
    500: '#2f50c4',
    950: '#000000',
  },
}
SCSS
$custom: #2f50c4;
$custom-light: #7e80d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50c4",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 196
  },
  "hsl": {
    "h": 226.711,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48027,
    "c": 0.18501,
    "h": 266.9
  },
  "luminance": 0.10327
}

Semantic roles & 50–950 ramp

primary
#2F50C4
secondary
#CDBC82
accent
#C143E4
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F50C4

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

Preview Lab → · Contrast checker → · Palette generator →

#2F50C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva