#2F51D4#2F51D4

#2F51D4 is a mid, highly saturated blue. Relative luminance 0.112; OKLCH L 49.6% C 0.205 H 267.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#2F51D4
RGBrgb(47, 81, 212)
HSLhsl(228, 66%, 51%)
HSVhsv(228, 78%, 83%)
CMYKcmyk(77.8%, 61.8%, 0%, 16.9%)
CIE-LABlab(39.98, 34.74, -70.66)
CIE-LCHlch(39.98, 78.74, 296.18°)
OKLaboklab(49.6% -0.0105 -0.2044)
OKLCHoklch(49.6% 0.205 267.1)
XYZxyz(15.9942, 11.2408, 63.6013)
Luminance0.1124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51D4 #D4B22F
analogous
#2FA4D4 #2F51D4 #5F2FD4
triadic
#2F51D4 #D42F51 #51D42F
tetradic
#2F51D4 #D42FA4 #D4B22F #2FD45F
square
#2F51D4 #D42FA4 #D4B22F #2FD45F
split-complementary
#2F51D4 #D45F2F #A4D42F
monochromatic
#172A71 #223DA4 #2F51D4 #627BDE #94A6E9

Accessibility & contrast

On white

6.46
#2F51D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#2F51D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F51D4
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51D4#FFFFFF#000000##FFFFFF
##2F51D41.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#0057D2
Tritanopia (blue-blind)
#00738B
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f51d4;
/* rgb */ color: rgb(47, 81, 212);
/* oklch */ color: oklch(49.6% 0.205 267.1);
Tailwind
colors: {
  custom: {
    50: '#8181e2',
    500: '#2f51d4',
    950: '#000000',
  },
}
SCSS
$custom: #2f51d4;
$custom-light: #8181e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51d4",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 212
  },
  "hsl": {
    "h": 227.636,
    "s": 65.737,
    "l": 50.784
  },
  "oklch": {
    "l": 0.49595,
    "c": 0.20465,
    "h": 267.1
  },
  "luminance": 0.11243
}

Semantic roles & 50–950 ramp

primary
#2F51D4
secondary
#D4C58B
accent
#C63FE9
background
#F8F7FE
surface
#F0EEFC
border
#CBC9D5
text
#0C0A15
muted
#7D7C84

Preview Lab

Preview with #2F51D4

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

Preview Lab → · Contrast checker → · Palette generator →

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