#2F50B3#2F50B3

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

Color values

HEX#2F50B3
RGBrgb(47, 80, 179)
HSLhsl(225, 58%, 44%)
HSVhsv(225, 74%, 70%)
CMYKcmyk(73.7%, 55.3%, 0%, 29.8%)
CIE-LABlab(37.11, 23.14, -56.13)
CIE-LCHlch(37.11, 60.72, 292.40°)
OKLaboklab(46.63% -0.0107 -0.1617)
OKLCHoklch(46.63% 0.162 266.2)
XYZxyz(12.1748, 9.5950, 43.8495)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50B3 #B3922F
analogous
#2F92B3 #2F50B3 #502FB3
triadic
#2F50B3 #B32F50 #50B32F
tetradic
#2F50B3 #B32F92 #B3922F #2FB350
square
#2F50B3 #B32F92 #B3922F #2FB350
split-complementary
#2F50B3 #B3502F #92B32F
monochromatic
#162552 #223A83 #2F50B3 #4F6FD1 #7F97DD

Accessibility & contrast

On white

7.19
#2F50B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2F50B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F50B3
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50B3#FFFFFF#000000##FFFFFF
##2F50B31.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f50b3;
/* rgb */ color: rgb(47, 80, 179);
/* oklch */ color: oklch(46.6% 0.162 266.2);
Tailwind
colors: {
  custom: {
    50: '#7a80ca',
    500: '#2f50b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f50b3;
$custom-light: #7a80ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50b3",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 179
  },
  "hsl": {
    "h": 225,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46629,
    "c": 0.16209,
    "h": 266.2
  },
  "luminance": 0.09596
}

Semantic roles & 50–950 ramp

primary
#2F50B3
secondary
#C6B378
accent
#BB46E2
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F50B3

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

Preview Lab → · Contrast checker → · Palette generator →

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