#2F51BF#2F51BF

#2F51BF is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.8% C 0.177 H 266.5°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#2F51BF
RGBrgb(47, 81, 191)
HSLhsl(226, 61%, 47%)
HSVhsv(226, 75%, 75%)
CMYKcmyk(75.4%, 57.6%, 0%, 25.1%)
CIE-LABlab(38.29, 26.98, -61.26)
CIE-LCHlch(38.29, 66.94, 293.77°)
OKLaboklab(47.8% -0.0108 -0.1768)
OKLCHoklch(47.8% 0.177 266.5)
XYZxyz(13.5154, 10.2493, 50.5461)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51BF #BF9D2F
analogous
#2F99BF #2F51BF #552FBF
triadic
#2F51BF #BF2F51 #51BF2F
tetradic
#2F51BF #BF2F99 #BF9D2F #2FBF55
square
#2F51BF #BF2F99 #BF9D2F #2FBF55
split-complementary
#2F51BF #BF552F #99BF2F
monochromatic
#17275D #233C8E #2F51BF #5674D5 #879CE1

Accessibility & contrast

On white

6.88
#2F51BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2F51BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F51BF
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51BF#FFFFFF#000000##FFFFFF
##2F51BF1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f51bf;
/* rgb */ color: rgb(47, 81, 191);
/* oklch */ color: oklch(47.8% 0.177 266.5);
Tailwind
colors: {
  custom: {
    50: '#7c81d3',
    500: '#2f51bf',
    950: '#000000',
  },
}
SCSS
$custom: #2f51bf;
$custom-light: #7c81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51bf",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 225.833,
    "s": 60.504,
    "l": 46.667
  },
  "oklch": {
    "l": 0.47804,
    "c": 0.17713,
    "h": 266.5
  },
  "luminance": 0.10251
}

Semantic roles & 50–950 ramp

primary
#2F51BF
secondary
#CBB97F
accent
#BE44E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F51BF

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

Preview Lab → · Contrast checker → · Palette generator →

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