#2F50B5#2F50B5

#2F50B5 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.165 H 266.3°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#2F50B5
RGBrgb(47, 80, 181)
HSLhsl(225, 59%, 45%)
HSVhsv(225, 74%, 71%)
CMYKcmyk(74%, 55.8%, 0%, 29%)
CIE-LABlab(37.26, 23.89, -57.07)
CIE-LCHlch(37.26, 61.87, 292.72°)
OKLaboklab(46.79% -0.0106 -0.1645)
OKLCHoklch(46.79% 0.165 266.3)
XYZxyz(12.3785, 9.6765, 44.9225)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50B5 #B5942F
analogous
#2F93B5 #2F50B5 #512FB5
triadic
#2F50B5 #B52F50 #50B52F
tetradic
#2F50B5 #B52F93 #B5942F #2FB551
square
#2F50B5 #B52F93 #B5942F #2FB551
split-complementary
#2F50B5 #B5512F #93B52F
monochromatic
#162554 #223B84 #2F50B5 #5070D1 #8097DE

Accessibility & contrast

On white

7.15
#2F50B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2F50B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F50B5
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50B5#FFFFFF#000000##FFFFFF
##2F50B51.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f50b5;
/* rgb */ color: rgb(47, 80, 181);
/* oklch */ color: oklch(46.8% 0.165 266.3);
Tailwind
colors: {
  custom: {
    50: '#7a80cc',
    500: '#2f50b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f50b5;
$custom-light: #7a80cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50b5",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 181
  },
  "hsl": {
    "h": 225.224,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46789,
    "c": 0.16483,
    "h": 266.3
  },
  "luminance": 0.09678
}

Semantic roles & 50–950 ramp

primary
#2F50B5
secondary
#C7B479
accent
#BC46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2F50B5

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

Preview Lab → · Contrast checker → · Palette generator →

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