#2F51BE#2F51BE

#2F51BE is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.7% C 0.176 H 266.5°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#2F51BE
RGBrgb(47, 81, 190)
HSLhsl(226, 60%, 46%)
HSVhsv(226, 75%, 75%)
CMYKcmyk(75.3%, 57.4%, 0%, 25.5%)
CIE-LABlab(38.21, 26.61, -60.80)
CIE-LCHlch(38.21, 66.37, 293.64°)
OKLaboklab(47.72% -0.0109 -0.1755)
OKLCHoklch(47.72% 0.176 266.5)
XYZxyz(13.4057, 10.2054, 49.9685)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51BE #BE9C2F
analogous
#2F99BE #2F51BE #542FBE
triadic
#2F51BE #BE2F51 #51BE2F
tetradic
#2F51BE #BE2F99 #BE9C2F #2FBE54
square
#2F51BE #BE2F99 #BE9C2F #2FBE54
split-complementary
#2F51BE #BE542F #99BE2F
monochromatic
#17275C #233C8D #2F51BE #5574D5 #869CE1

Accessibility & contrast

On white

6.90
#2F51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2F51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F51BE
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51BE#FFFFFF#000000##FFFFFF
##2F51BE1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#0054BC
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f51be;
/* rgb */ color: rgb(47, 81, 190);
/* oklch */ color: oklch(47.7% 0.176 266.5);
Tailwind
colors: {
  custom: {
    50: '#7c81d2',
    500: '#2f51be',
    950: '#000000',
  },
}
SCSS
$custom: #2f51be;
$custom-light: #7c81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51be",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 225.734,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47721,
    "c": 0.1758,
    "h": 266.5
  },
  "luminance": 0.10207
}

Semantic roles & 50–950 ramp

primary
#2F51BE
secondary
#CBB87E
accent
#BE44E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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