#2F50B1#2F50B1

#2F50B1 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.159 H 266.1°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2F50B1
RGBrgb(47, 80, 177)
HSLhsl(225, 58%, 44%)
HSVhsv(225, 73%, 69%)
CMYKcmyk(73.4%, 54.8%, 0%, 30.6%)
CIE-LABlab(36.96, 22.39, -55.19)
CIE-LCHlch(36.96, 59.56, 292.08°)
OKLaboklab(46.47% -0.0108 -0.159)
OKLCHoklch(46.47% 0.159 266.1)
XYZxyz(11.9740, 9.5147, 42.7919)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50B1 #B1902F
analogous
#2F91B1 #2F50B1 #4F2FB1
triadic
#2F50B1 #B12F50 #50B12F
tetradic
#2F50B1 #B12F91 #B1902F #2FB14F
square
#2F50B1 #B12F91 #B1902F #2FB14F
split-complementary
#2F50B1 #B14F2F #91B12F
monochromatic
#152450 #223A81 #2F50B1 #4D6ED0 #7E96DD

Accessibility & contrast

On white

7.23
#2F50B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2F50B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F50B1
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50B1#FFFFFF#000000##FFFFFF
##2F50B11.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB4
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#006878
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f50b1;
/* rgb */ color: rgb(47, 80, 177);
/* oklch */ color: oklch(46.5% 0.159 266.1);
Tailwind
colors: {
  custom: {
    50: '#7980c9',
    500: '#2f50b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f50b1;
$custom-light: #7980c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50b1",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 177
  },
  "hsl": {
    "h": 224.769,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4647,
    "c": 0.15934,
    "h": 266.1
  },
  "luminance": 0.09516
}

Semantic roles & 50–950 ramp

primary
#2F50B1
secondary
#C5B176
accent
#BA47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F50B1

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

Preview Lab → · Contrast checker → · Palette generator →

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