#2F51AB#2F51AB

#2F51AB is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.150 H 265.3°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#2F51AB
RGBrgb(47, 81, 171)
HSLhsl(224, 57%, 43%)
HSVhsv(224, 73%, 67%)
CMYKcmyk(72.5%, 52.6%, 0%, 32.9%)
CIE-LABlab(36.80, 19.46, -51.90)
CIE-LCHlch(36.80, 55.43, 290.56°)
OKLaboklab(46.21% -0.0122 -0.1493)
OKLCHoklch(46.21% 0.15 265.3)
XYZxyz(11.4628, 9.4283, 39.7359)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51AB #AB892F
analogous
#2F8FAB #2F51AB #4B2FAB
triadic
#2F51AB #AB2F51 #51AB2F
tetradic
#2F51AB #AB2F8F #AB892F #2FAB4B
square
#2F51AB #AB2F8F #AB892F #2FAB4B
split-complementary
#2F51AB #AB4B2F #8FAB2F
monochromatic
#15244B #223A7B #2F51AB #4A6ECD #7A94DA

Accessibility & contrast

On white

7.28
#2F51AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2F51AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F51AB
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51AB#FFFFFF#000000##FFFFFF
##2F51AB1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155DAE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f51ab;
/* rgb */ color: rgb(47, 81, 171);
/* oklch */ color: oklch(46.2% 0.150 265.3);
Tailwind
colors: {
  custom: {
    50: '#7881c5',
    500: '#2f51ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f51ab;
$custom-light: #7881c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51ab",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 171
  },
  "hsl": {
    "h": 223.548,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.4621,
    "c": 0.14976,
    "h": 265.3
  },
  "luminance": 0.09429
}

Semantic roles & 50–950 ramp

primary
#2F51AB
secondary
#C3AD73
accent
#B648E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F51AB

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

Preview Lab → · Contrast checker → · Palette generator →

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