#2F50B8#2F50B8

#2F50B8 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.169 H 266.5°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#2F50B8
RGBrgb(47, 80, 184)
HSLhsl(226, 59%, 45%)
HSVhsv(226, 74%, 72%)
CMYKcmyk(74.5%, 56.5%, 0%, 27.8%)
CIE-LABlab(37.48, 25.02, -58.47)
CIE-LCHlch(37.48, 63.59, 293.17°)
OKLaboklab(47.03% -0.0104 -0.1686)
OKLCHoklch(47.03% 0.169 266.5)
XYZxyz(12.6897, 9.8010, 46.5611)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F50B8 #B8972F
analogous
#2F95B8 #2F50B8 #522FB8
triadic
#2F50B8 #B82F50 #50B82F
tetradic
#2F50B8 #B82F95 #B8972F #2FB852
square
#2F50B8 #B82F95 #B8972F #2FB852
split-complementary
#2F50B8 #B8522F #95B82F
monochromatic
#162657 #233B87 #2F50B8 #5271D3 #8299DF

Accessibility & contrast

On white

7.09
#2F50B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2F50B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F50B8
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F50B8#FFFFFF#000000##FFFFFF
##2F50B81.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#0052B6
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2f50b8;
/* rgb */ color: rgb(47, 80, 184);
/* oklch */ color: oklch(47.0% 0.169 266.5);
Tailwind
colors: {
  custom: {
    50: '#7b80ce',
    500: '#2f50b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f50b8;
$custom-light: #7b80ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f50b8",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 184
  },
  "hsl": {
    "h": 225.547,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47032,
    "c": 0.16892,
    "h": 266.5
  },
  "luminance": 0.09802
}

Semantic roles & 50–950 ramp

primary
#2F50B8
secondary
#C8B67B
accent
#BD45E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2F50B8

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

Preview Lab → · Contrast checker → · Palette generator →

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