#2F51A2#2F51A2

#2F51A2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.137 H 264.5°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#2F51A2
RGBrgb(47, 81, 162)
HSLhsl(222, 55%, 41%)
HSVhsv(222, 71%, 64%)
CMYKcmyk(71%, 50%, 0%, 36.5%)
CIE-LABlab(36.17, 16.06, -47.54)
CIE-LCHlch(36.17, 50.18, 288.67°)
OKLaboklab(45.53% -0.0132 -0.1364)
OKLCHoklch(45.53% 0.137 264.5)
XYZxyz(10.6340, 9.0967, 35.3708)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51A2 #A2802F
analogous
#2F8AA2 #2F51A2 #462FA2
triadic
#2F51A2 #A22F51 #51A22F
tetradic
#2F51A2 #A22F8A #A2802F #2FA246
square
#2F51A2 #A22F8A #A2802F #2FA246
split-complementary
#2F51A2 #A2462F #8AA22F
monochromatic
#132243 #213973 #2F51A2 #456CC9 #7592D7

Accessibility & contrast

On white

7.45
#2F51A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2F51A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F51A2
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51A2#FFFFFF#000000##FFFFFF
##2F51A21.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235BA5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f51a2;
/* rgb */ color: rgb(47, 81, 162);
/* oklch */ color: oklch(45.5% 0.137 264.5);
Tailwind
colors: {
  custom: {
    50: '#7681be',
    500: '#2f51a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f51a2;
$custom-light: #7681be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51a2",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 222.261,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.45534,
    "c": 0.13707,
    "h": 264.5
  },
  "luminance": 0.09098
}

Semantic roles & 50–950 ramp

primary
#2F51A2
secondary
#BFA76E
accent
#B249DE
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2F51A2

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

Preview Lab → · Contrast checker → · Palette generator →

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