#2F51D3#2F51D3

#2F51D3 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 49.5% C 0.203 H 267.0°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#2F51D3
RGBrgb(47, 81, 211)
HSLhsl(228, 65%, 51%)
HSVhsv(228, 78%, 83%)
CMYKcmyk(77.7%, 61.6%, 0%, 17.3%)
CIE-LABlab(39.90, 34.37, -70.22)
CIE-LCHlch(39.90, 78.19, 296.08°)
OKLaboklab(49.51% -0.0105 -0.2031)
OKLCHoklch(49.51% 0.203 267)
XYZxyz(15.8685, 11.1905, 62.9390)
Luminance0.1119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51D3 #D3B12F
analogous
#2FA3D3 #2F51D3 #5F2FD3
triadic
#2F51D3 #D32F51 #51D32F
tetradic
#2F51D3 #D32FA3 #D3B12F #2FD35F
square
#2F51D3 #D32FA3 #D3B12F #2FD35F
split-complementary
#2F51D3 #D35F2F #A3D32F
monochromatic
#182A70 #223DA2 #2F51D3 #627BDE #94A6E8

Accessibility & contrast

On white

6.48
#2F51D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#2F51D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F51D3
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51D3#FFFFFF#000000##FFFFFF
##2F51D31.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0057D1
Tritanopia (blue-blind)
#00738A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f51d3;
/* rgb */ color: rgb(47, 81, 211);
/* oklch */ color: oklch(49.5% 0.203 267.0);
Tailwind
colors: {
  custom: {
    50: '#8181e2',
    500: '#2f51d3',
    950: '#000000',
  },
}
SCSS
$custom: #2f51d3;
$custom-light: #8181e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51d3",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 211
  },
  "hsl": {
    "h": 227.561,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.49508,
    "c": 0.20337,
    "h": 267
  },
  "luminance": 0.11192
}

Semantic roles & 50–950 ramp

primary
#2F51D3
secondary
#D3C48A
accent
#C540E8
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0A15
muted
#7D7C84

Preview Lab

Preview with #2F51D3

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

Preview Lab → · Contrast checker → · Palette generator →

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