#2F50B7#2F50B7

#2F50B7 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.168 H 266.4°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2F50B7
RGBrgb(47, 80, 183)
HSLhsl(225, 59%, 45%)
HSVhsv(225, 74%, 72%)
CMYKcmyk(74.3%, 56.3%, 0%, 28.2%)
CIE-LABlab(37.41, 24.64, -58.00)
CIE-LCHlch(37.41, 63.02, 293.02°)
OKLaboklab(46.95% -0.0105 -0.1672)
OKLCHoklch(46.95% 0.168 266.4)
XYZxyz(12.5852, 9.7592, 46.0110)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50B7 #B7962F
analogous
#2F94B7 #2F50B7 #522FB7
triadic
#2F50B7 #B72F50 #50B72F
tetradic
#2F50B7 #B72F94 #B7962F #2FB752
square
#2F50B7 #B72F94 #B7962F #2FB752
split-complementary
#2F50B7 #B7522F #94B72F
monochromatic
#162556 #223B86 #2F50B7 #5170D2 #8298DF

Accessibility & contrast

On white

7.11
#2F50B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2F50B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F50B7
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50B7#FFFFFF#000000##FFFFFF
##2F50B71.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f50b7;
/* rgb */ color: rgb(47, 80, 183);
/* oklch */ color: oklch(47.0% 0.168 266.4);
Tailwind
colors: {
  custom: {
    50: '#7b80cd',
    500: '#2f50b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f50b7;
$custom-light: #7b80cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50b7",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 183
  },
  "hsl": {
    "h": 225.441,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46951,
    "c": 0.16756,
    "h": 266.4
  },
  "luminance": 0.09761
}

Semantic roles & 50–950 ramp

primary
#2F50B7
secondary
#C8B57A
accent
#BC45E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F50B7

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

Preview Lab → · Contrast checker → · Palette generator →

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