#2A50B7#2A50B7

#2A50B7 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.7% C 0.169 H 265.1°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2A50B7
RGBrgb(42, 80, 183)
HSLhsl(224, 63%, 44%)
HSVhsv(224, 77%, 72%)
CMYKcmyk(77%, 56.3%, 0%, 28.2%)
CIE-LABlab(37.20, 24.05, -58.34)
CIE-LCHlch(37.20, 63.11, 292.40°)
OKLaboklab(46.74% -0.0145 -0.1683)
OKLCHoklch(46.74% 0.169 265.1)
XYZxyz(12.3677, 9.6471, 46.0008)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A50B7 #B7912A
analogous
#2A97B7 #2A50B7 #4B2AB7
triadic
#2A50B7 #B72A50 #50B72A
tetradic
#2A50B7 #B72A97 #B7912A #2AB74B
square
#2A50B7 #B72A97 #B7912A #2AB74B
split-complementary
#2A50B7 #B74B2A #97B72A
monochromatic
#132453 #1F3A85 #2A50B7 #496FD5 #7B96E1

Accessibility & contrast

On white

7.17
#2A50B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2A50B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A50B7
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A50B7#FFFFFF#000000##FFFFFF
##2A50B71.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a50b7;
/* rgb */ color: rgb(42, 80, 183);
/* oklch */ color: oklch(46.7% 0.169 265.1);
Tailwind
colors: {
  custom: {
    50: '#7980cd',
    500: '#2a50b7',
    950: '#000000',
  },
}
SCSS
$custom: #2a50b7;
$custom-light: #7980cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a50b7",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 183
  },
  "hsl": {
    "h": 223.83,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.46739,
    "c": 0.16896,
    "h": 265.1
  },
  "luminance": 0.09648
}

Semantic roles & 50–950 ramp

primary
#2A50B7
secondary
#C9B274
accent
#BA42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A50B7

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

Preview Lab → · Contrast checker → · Palette generator →

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