#2F50B9#2F50B9

#2F50B9 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.170 H 266.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2F50B9
RGBrgb(47, 80, 185)
HSLhsl(226, 59%, 45%)
HSVhsv(226, 75%, 73%)
CMYKcmyk(74.6%, 56.8%, 0%, 27.5%)
CIE-LABlab(37.56, 25.39, -58.93)
CIE-LCHlch(37.56, 64.17, 293.31°)
OKLaboklab(47.11% -0.0103 -0.17)
OKLCHoklch(47.11% 0.17 266.5)
XYZxyz(12.7948, 9.8431, 47.1151)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50B9 #B9982F
analogous
#2F95B9 #2F50B9 #532FB9
triadic
#2F50B9 #B92F50 #50B92F
tetradic
#2F50B9 #B92F95 #B9982F #2FB953
square
#2F50B9 #B92F95 #B9982F #2FB953
split-complementary
#2F50B9 #B9532F #95B92F
monochromatic
#162657 #233B88 #2F50B9 #5271D3 #8399DF

Accessibility & contrast

On white

7.07
#2F50B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2F50B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F50B9
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50B9#FFFFFF#000000##FFFFFF
##2F50B91.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f50b9;
/* rgb */ color: rgb(47, 80, 185);
/* oklch */ color: oklch(47.1% 0.170 266.5);
Tailwind
colors: {
  custom: {
    50: '#7b80cf',
    500: '#2f50b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f50b9;
$custom-light: #7b80cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50b9",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 185
  },
  "hsl": {
    "h": 225.652,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47113,
    "c": 0.17027,
    "h": 266.5
  },
  "luminance": 0.09844
}

Semantic roles & 50–950 ramp

primary
#2F50B9
secondary
#C9B67B
accent
#BD45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F50B9

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

Preview Lab → · Contrast checker → · Palette generator →

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