#2F51BC#2F51BC

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

Color values

HEX#2F51BC
RGBrgb(47, 81, 188)
HSLhsl(226, 60%, 46%)
HSVhsv(226, 75%, 74%)
CMYKcmyk(75%, 56.9%, 0%, 26.3%)
CIE-LABlab(38.05, 25.86, -59.88)
CIE-LCHlch(38.05, 65.23, 293.36°)
OKLaboklab(47.56% -0.0109 -0.1727)
OKLCHoklch(47.56% 0.173 266.4)
XYZxyz(13.1886, 10.1186, 48.8252)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51BC #BC9A2F
analogous
#2F97BC #2F51BC #532FBC
triadic
#2F51BC #BC2F51 #51BC2F
tetradic
#2F51BC #BC2F97 #BC9A2F #2FBC53
square
#2F51BC #BC2F97 #BC9A2F #2FBC53
split-complementary
#2F51BC #BC532F #97BC2F
monochromatic
#17275A #233C8B #2F51BC #5473D4 #859BE0

Accessibility & contrast

On white

6.94
#2F51BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2F51BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F51BC
6.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51BC#FFFFFF#000000##FFFFFF
##2F51BC1.006.943.026.94
#FFFFFF6.941.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0053BA
Tritanopia (blue-blind)
#006C7E
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f51bc;
/* rgb */ color: rgb(47, 81, 188);
/* oklch */ color: oklch(47.6% 0.173 266.4);
Tailwind
colors: {
  custom: {
    50: '#7c81d1',
    500: '#2f51bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f51bc;
$custom-light: #7c81d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51bc",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 188
  },
  "hsl": {
    "h": 225.532,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47557,
    "c": 0.1731,
    "h": 266.4
  },
  "luminance": 0.1012
}

Semantic roles & 50–950 ramp

primary
#2F51BC
secondary
#CAB77D
accent
#BD45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F51BC

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

Preview Lab → · Contrast checker → · Palette generator →

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