#2F51B2#2F51B2

#2F51B2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.159 H 265.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#2F51B2
RGBrgb(47, 81, 178)
HSLhsl(224, 58%, 44%)
HSVhsv(224, 74%, 70%)
CMYKcmyk(73.6%, 54.5%, 0%, 30.2%)
CIE-LABlab(37.30, 22.11, -55.22)
CIE-LCHlch(37.30, 59.48, 291.82°)
OKLaboklab(46.75% -0.0116 -0.159)
OKLCHoklch(46.75% 0.159 265.8)
XYZxyz(12.1478, 9.7023, 43.3434)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51B2 #B2902F
analogous
#2F93B2 #2F51B2 #4E2FB2
triadic
#2F51B2 #B22F51 #51B22F
tetradic
#2F51B2 #B22F93 #B2902F #2FB24E
square
#2F51B2 #B22F93 #B2902F #2FB24E
split-complementary
#2F51B2 #B24E2F #93B22F
monochromatic
#152551 #223B82 #2F51B2 #4E70D0 #7E97DD

Accessibility & contrast

On white

7.14
#2F51B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F51B2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51B2#FFFFFF#000000##FFFFFF
##2F51B21.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f51b2;
/* rgb */ color: rgb(47, 81, 178);
/* oklch */ color: oklch(46.8% 0.159 265.8);
Tailwind
colors: {
  custom: {
    50: '#7a81ca',
    500: '#2f51b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f51b2;
$custom-light: #7a81ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51b2",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 224.427,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46754,
    "c": 0.15947,
    "h": 265.8
  },
  "luminance": 0.09704
}

Semantic roles & 50–950 ramp

primary
#2F51B2
secondary
#C6B177
accent
#B946E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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