#2F51AE#2F51AE

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

Color values

HEX#2F51AE
RGBrgb(47, 81, 174)
HSLhsl(224, 57%, 43%)
HSVhsv(224, 73%, 68%)
CMYKcmyk(73%, 53.4%, 0%, 31.8%)
CIE-LABlab(37.01, 20.60, -53.33)
CIE-LCHlch(37.01, 57.17, 291.12°)
OKLaboklab(46.44% -0.0119 -0.1535)
OKLCHoklch(46.44% 0.154 265.6)
XYZxyz(11.7520, 9.5439, 41.2590)
Luminance0.0954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51AE #AE8C2F
analogous
#2F90AE #2F51AE #4C2FAE
triadic
#2F51AE #AE2F51 #51AE2F
tetradic
#2F51AE #AE2F90 #AE8C2F #2FAE4C
square
#2F51AE #AE2F90 #AE8C2F #2FAE4C
split-complementary
#2F51AE #AE4C2F #90AE2F
monochromatic
#15244E #223B7E #2F51AE #4C6FCF #7C95DC

Accessibility & contrast

On white

7.22
#2F51AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2F51AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F51AE
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51AE#FFFFFF#000000##FFFFFF
##2F51AE1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5DB1
Deuteranopia (green-blind)
#0052AC
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f51ae;
/* rgb */ color: rgb(47, 81, 174);
/* oklch */ color: oklch(46.4% 0.154 265.6);
Tailwind
colors: {
  custom: {
    50: '#7981c7',
    500: '#2f51ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f51ae;
$custom-light: #7981c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51ae",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 223.937,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46441,
    "c": 0.15393,
    "h": 265.6
  },
  "luminance": 0.09545
}

Semantic roles & 50–950 ramp

primary
#2F51AE
secondary
#C4AF75
accent
#B847E1
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2F51AE

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

Preview Lab → · Contrast checker → · Palette generator →

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