#2F50B2#2F50B2

#2F50B2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.161 H 266.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2F50B2
RGBrgb(47, 80, 178)
HSLhsl(225, 58%, 44%)
HSVhsv(225, 74%, 70%)
CMYKcmyk(73.6%, 55.1%, 0%, 30.2%)
CIE-LABlab(37.03, 22.77, -55.66)
CIE-LCHlch(37.03, 60.14, 292.24°)
OKLaboklab(46.55% -0.0108 -0.1604)
OKLCHoklch(46.55% 0.161 266.2)
XYZxyz(12.0740, 9.5547, 43.3188)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50B2 #B2912F
analogous
#2F92B2 #2F50B2 #4F2FB2
triadic
#2F50B2 #B22F50 #50B22F
tetradic
#2F50B2 #B22F92 #B2912F #2FB24F
square
#2F50B2 #B22F92 #B2912F #2FB24F
split-complementary
#2F50B2 #B24F2F #92B22F
monochromatic
#152451 #223A82 #2F50B2 #4E6FD0 #7E96DD

Accessibility & contrast

On white

7.21
#2F50B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2F50B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F50B2
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50B2#FFFFFF#000000##FFFFFF
##2F50B21.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f50b2;
/* rgb */ color: rgb(47, 80, 178);
/* oklch */ color: oklch(46.5% 0.161 266.2);
Tailwind
colors: {
  custom: {
    50: '#7a80ca',
    500: '#2f50b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f50b2;
$custom-light: #7a80ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50b2",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 178
  },
  "hsl": {
    "h": 224.885,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46549,
    "c": 0.16072,
    "h": 266.2
  },
  "luminance": 0.09556
}

Semantic roles & 50–950 ramp

primary
#2F50B2
secondary
#C6B277
accent
#BA46E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F50B2

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

Preview Lab → · Contrast checker → · Palette generator →

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