#2F51B3#2F51B3

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

Color values

HEX#2F51B3
RGBrgb(47, 81, 179)
HSLhsl(225, 58%, 44%)
HSVhsv(225, 74%, 70%)
CMYKcmyk(73.7%, 54.7%, 0%, 29.8%)
CIE-LABlab(37.38, 22.48, -55.69)
CIE-LCHlch(37.38, 60.06, 291.98°)
OKLaboklab(46.83% -0.0115 -0.1604)
OKLCHoklch(46.83% 0.161 265.9)
XYZxyz(12.2485, 9.7426, 43.8741)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51B3 #B3912F
analogous
#2F93B3 #2F51B3 #4F2FB3
triadic
#2F51B3 #B32F51 #51B32F
tetradic
#2F51B3 #B32F93 #B3912F #2FB34F
square
#2F51B3 #B32F93 #B3912F #2FB34F
split-complementary
#2F51B3 #B34F2F #93B32F
monochromatic
#162552 #223B83 #2F51B3 #4F70D1 #7F97DD

Accessibility & contrast

On white

7.12
#2F51B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F51B3
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51B3#FFFFFF#000000##FFFFFF
##2F51B31.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#0052B1
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f51b3;
/* rgb */ color: rgb(47, 81, 179);
/* oklch */ color: oklch(46.8% 0.161 265.9);
Tailwind
colors: {
  custom: {
    50: '#7a81ca',
    500: '#2f51b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f51b3;
$custom-light: #7a81ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51b3",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 179
  },
  "hsl": {
    "h": 224.545,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46833,
    "c": 0.16084,
    "h": 265.9
  },
  "luminance": 0.09744
}

Semantic roles & 50–950 ramp

primary
#2F51B3
secondary
#C6B278
accent
#BA46E2
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F51B3

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

Preview Lab → · Contrast checker → · Palette generator →

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