#2F51BA#2F51BA

#2F51BA is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.170 H 266.3°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2F51BA
RGBrgb(47, 81, 186)
HSLhsl(225, 60%, 46%)
HSVhsv(225, 75%, 73%)
CMYKcmyk(74.7%, 56.5%, 0%, 27.1%)
CIE-LABlab(37.90, 25.11, -58.96)
CIE-LCHlch(37.90, 64.09, 293.07°)
OKLaboklab(47.39% -0.0111 -0.17)
OKLCHoklch(47.39% 0.17 266.3)
XYZxyz(12.9745, 10.0330, 47.6976)
Luminance0.1003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F51BA #BA982F
analogous
#2F96BA #2F51BA #522FBA
triadic
#2F51BA #BA2F51 #51BA2F
tetradic
#2F51BA #BA2F96 #BA982F #2FBA52
square
#2F51BA #BA2F96 #BA982F #2FBA52
split-complementary
#2F51BA #BA522F #96BA2F
monochromatic
#162658 #233C89 #2F51BA #5372D3 #849AE0

Accessibility & contrast

On white

6.98
#2F51BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2F51BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F51BA
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F51BA#FFFFFF#000000##FFFFFF
##2F51BA1.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f51ba;
/* rgb */ color: rgb(47, 81, 186);
/* oklch */ color: oklch(47.4% 0.170 266.3);
Tailwind
colors: {
  custom: {
    50: '#7b81d0',
    500: '#2f51ba',
    950: '#000000',
  },
}
SCSS
$custom: #2f51ba;
$custom-light: #7b81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f51ba",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 225.324,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47394,
    "c": 0.1704,
    "h": 266.3
  },
  "luminance": 0.10034
}

Semantic roles & 50–950 ramp

primary
#2F51BA
secondary
#C9B67C
accent
#BC45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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