#2F51AA#2F51AA

#2F51AA is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.1% C 0.148 H 265.2°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#2F51AA
RGBrgb(47, 81, 170)
HSLhsl(223, 57%, 43%)
HSVhsv(223, 72%, 67%)
CMYKcmyk(72.4%, 52.4%, 0%, 33.3%)
CIE-LABlab(36.73, 19.09, -51.42)
CIE-LCHlch(36.73, 54.84, 290.36°)
OKLaboklab(46.13% -0.0123 -0.1478)
OKLCHoklch(46.13% 0.148 265.2)
XYZxyz(11.3679, 9.3903, 39.2358)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51AA #AA882F
analogous
#2F8EAA #2F51AA #4B2FAA
triadic
#2F51AA #AA2F51 #51AA2F
tetradic
#2F51AA #AA2F8E #AA882F #2FAA4B
square
#2F51AA #AA2F8E #AA882F #2FAA4B
split-complementary
#2F51AA #AA4B2F #8EAA2F
monochromatic
#14234A #223A7A #2F51AA #496ECD #7994DA

Accessibility & contrast

On white

7.30
#2F51AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2F51AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F51AA
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51AA#FFFFFF#000000##FFFFFF
##2F51AA1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175CAD
Deuteranopia (green-blind)
#0051A8
Tritanopia (blue-blind)
#006675
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f51aa;
/* rgb */ color: rgb(47, 81, 170);
/* oklch */ color: oklch(46.1% 0.148 265.2);
Tailwind
colors: {
  custom: {
    50: '#7881c4',
    500: '#2f51aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f51aa;
$custom-light: #7881c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51aa",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 223.415,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.46134,
    "c": 0.14836,
    "h": 265.2
  },
  "luminance": 0.09391
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F51AA

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

Preview Lab → · Contrast checker → · Palette generator →

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