#2F51AD#2F51AD

#2F51AD is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.153 H 265.5°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#2F51AD
RGBrgb(47, 81, 173)
HSLhsl(224, 57%, 43%)
HSVhsv(224, 73%, 68%)
CMYKcmyk(72.8%, 53.2%, 0%, 32.2%)
CIE-LABlab(36.94, 20.22, -52.85)
CIE-LCHlch(36.94, 56.59, 290.93°)
OKLaboklab(46.36% -0.012 -0.1521)
OKLCHoklch(46.36% 0.153 265.5)
XYZxyz(11.6549, 9.5051, 40.7475)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51AD #AD8B2F
analogous
#2F90AD #2F51AD #4C2FAD
triadic
#2F51AD #AD2F51 #51AD2F
tetradic
#2F51AD #AD2F90 #AD8B2F #2FAD4C
square
#2F51AD #AD2F90 #AD8B2F #2FAD4C
split-complementary
#2F51AD #AD4C2F #90AD2F
monochromatic
#15244D #223A7D #2F51AD #4B6ECE #7B95DB

Accessibility & contrast

On white

7.24
#2F51AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2F51AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F51AD
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51AD#FFFFFF#000000##FFFFFF
##2F51AD1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105DB0
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f51ad;
/* rgb */ color: rgb(47, 81, 173);
/* oklch */ color: oklch(46.4% 0.153 265.5);
Tailwind
colors: {
  custom: {
    50: '#7881c6',
    500: '#2f51ad',
    950: '#000000',
  },
}
SCSS
$custom: #2f51ad;
$custom-light: #7881c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51ad",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 173
  },
  "hsl": {
    "h": 223.81,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46364,
    "c": 0.15254,
    "h": 265.5
  },
  "luminance": 0.09506
}

Semantic roles & 50–950 ramp

primary
#2F51AD
secondary
#C4AE74
accent
#B747E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F51AD

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

Preview Lab → · Contrast checker → · Palette generator →

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