#2F50B6#2F50B6

#2F50B6 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.9% C 0.166 H 266.4°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#2F50B6
RGBrgb(47, 80, 182)
HSLhsl(225, 59%, 45%)
HSVhsv(225, 74%, 71%)
CMYKcmyk(74.2%, 56%, 0%, 28.6%)
CIE-LABlab(37.33, 24.27, -57.54)
CIE-LCHlch(37.33, 62.45, 292.87°)
OKLaboklab(46.87% -0.0105 -0.1659)
OKLCHoklch(46.87% 0.166 266.4)
XYZxyz(12.4815, 9.7177, 45.4648)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50B6 #B6952F
analogous
#2F94B6 #2F50B6 #512FB6
triadic
#2F50B6 #B62F50 #50B62F
tetradic
#2F50B6 #B62F94 #B6952F #2FB651
square
#2F50B6 #B62F94 #B6952F #2FB651
split-complementary
#2F50B6 #B6512F #94B62F
monochromatic
#162555 #223B85 #2F50B6 #5070D2 #8198DE

Accessibility & contrast

On white

7.13
#2F50B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F50B6
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50B6#FFFFFF#000000##FFFFFF
##2F50B61.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBA
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f50b6;
/* rgb */ color: rgb(47, 80, 182);
/* oklch */ color: oklch(46.9% 0.166 266.4);
Tailwind
colors: {
  custom: {
    50: '#7a80cd',
    500: '#2f50b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f50b6;
$custom-light: #7a80cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50b6",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 182
  },
  "hsl": {
    "h": 225.333,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.4687,
    "c": 0.16619,
    "h": 266.4
  },
  "luminance": 0.09719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F50B6

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

Preview Lab → · Contrast checker → · Palette generator →

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