#2F50BA#2F50BA

#2F50BA is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.172 H 266.6°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#2F50BA
RGBrgb(47, 80, 186)
HSLhsl(226, 60%, 46%)
HSVhsv(226, 75%, 73%)
CMYKcmyk(74.7%, 57%, 0%, 27.1%)
CIE-LABlab(37.64, 25.77, -59.39)
CIE-LCHlch(37.64, 64.74, 293.45°)
OKLaboklab(47.2% -0.0103 -0.1713)
OKLCHoklch(47.2% 0.172 266.6)
XYZxyz(12.9008, 9.8854, 47.6730)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50BA #BA992F
analogous
#2F96BA #2F50BA #532FBA
triadic
#2F50BA #BA2F50 #50BA2F
tetradic
#2F50BA #BA2F96 #BA992F #2FBA53
square
#2F50BA #BA2F96 #BA992F #2FBA53
split-complementary
#2F50BA #BA532F #96BA2F
monochromatic
#162658 #233B89 #2F50BA #5371D3 #8499E0

Accessibility & contrast

On white

7.05
#2F50BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2F50BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F50BA
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50BA#FFFFFF#000000##FFFFFF
##2F50BA1.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f50ba;
/* rgb */ color: rgb(47, 80, 186);
/* oklch */ color: oklch(47.2% 0.172 266.6);
Tailwind
colors: {
  custom: {
    50: '#7b80d0',
    500: '#2f50ba',
    950: '#000000',
  },
}
SCSS
$custom: #2f50ba;
$custom-light: #7b80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50ba",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 186
  },
  "hsl": {
    "h": 225.755,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.47195,
    "c": 0.17163,
    "h": 266.6
  },
  "luminance": 0.09887
}

Semantic roles & 50–950 ramp

primary
#2F50BA
secondary
#C9B77C
accent
#BD45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F50BA

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

Preview Lab → · Contrast checker → · Palette generator →

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