#2F51BD#2F51BD

#2F51BD is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.6% C 0.174 H 266.4°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#2F51BD
RGBrgb(47, 81, 189)
HSLhsl(226, 60%, 46%)
HSVhsv(226, 75%, 74%)
CMYKcmyk(75.1%, 57.1%, 0%, 25.9%)
CIE-LABlab(38.13, 26.24, -60.35)
CIE-LCHlch(38.13, 65.80, 293.50°)
OKLaboklab(47.64% -0.0109 -0.1741)
OKLCHoklch(47.64% 0.174 266.4)
XYZxyz(13.2968, 10.1619, 49.3949)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51BD #BD9B2F
analogous
#2F98BD #2F51BD #542FBD
triadic
#2F51BD #BD2F51 #51BD2F
tetradic
#2F51BD #BD2F98 #BD9B2F #2FBD54
square
#2F51BD #BD2F98 #BD9B2F #2FBD54
split-complementary
#2F51BD #BD542F #98BD2F
monochromatic
#17275B #233C8C #2F51BD #5573D5 #869BE1

Accessibility & contrast

On white

6.92
#2F51BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#2F51BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F51BD
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51BD#FFFFFF#000000##FFFFFF
##2F51BD1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C1
Deuteranopia (green-blind)
#0053BB
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f51bd;
/* rgb */ color: rgb(47, 81, 189);
/* oklch */ color: oklch(47.6% 0.174 266.4);
Tailwind
colors: {
  custom: {
    50: '#7c81d2',
    500: '#2f51bd',
    950: '#000000',
  },
}
SCSS
$custom: #2f51bd;
$custom-light: #7c81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51bd",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 225.634,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.47639,
    "c": 0.17445,
    "h": 266.4
  },
  "luminance": 0.10163
}

Semantic roles & 50–950 ramp

primary
#2F51BD
secondary
#CAB87E
accent
#BD44E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F51BD

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

Preview Lab → · Contrast checker → · Palette generator →

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