#2F50B4#2F50B4

#2F50B4 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.7% C 0.163 H 266.3°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2F50B4
RGBrgb(47, 80, 180)
HSLhsl(225, 59%, 45%)
HSVhsv(225, 74%, 71%)
CMYKcmyk(73.9%, 55.6%, 0%, 29.4%)
CIE-LABlab(37.18, 23.52, -56.60)
CIE-LCHlch(37.18, 61.29, 292.56°)
OKLaboklab(46.71% -0.0106 -0.1631)
OKLCHoklch(46.71% 0.163 266.3)
XYZxyz(12.2763, 9.6356, 44.3840)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50B4 #B4932F
analogous
#2F92B4 #2F50B4 #512FB4
triadic
#2F50B4 #B42F50 #50B42F
tetradic
#2F50B4 #B42F92 #B4932F #2FB451
square
#2F50B4 #B42F92 #B4932F #2FB451
split-complementary
#2F50B4 #B4512F #92B42F
monochromatic
#162553 #223A83 #2F50B4 #4F6FD1 #8097DE

Accessibility & contrast

On white

7.17
#2F50B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2F50B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F50B4
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50B4#FFFFFF#000000##FFFFFF
##2F50B41.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f50b4;
/* rgb */ color: rgb(47, 80, 180);
/* oklch */ color: oklch(46.7% 0.163 266.3);
Tailwind
colors: {
  custom: {
    50: '#7a80cb',
    500: '#2f50b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f50b4;
$custom-light: #7a80cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50b4",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 180
  },
  "hsl": {
    "h": 225.113,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46709,
    "c": 0.16347,
    "h": 266.3
  },
  "luminance": 0.09637
}

Semantic roles & 50–950 ramp

primary
#2F50B4
secondary
#C7B378
accent
#BB46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2F50B4

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

Preview Lab → · Contrast checker → · Palette generator →

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