#2A50B5#2A50B5

#2A50B5 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.6% C 0.166 H 264.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2A50B5
RGBrgb(42, 80, 181)
HSLhsl(224, 62%, 44%)
HSVhsv(224, 77%, 71%)
CMYKcmyk(76.8%, 55.8%, 0%, 29%)
CIE-LABlab(37.05, 23.29, -57.41)
CIE-LCHlch(37.05, 61.96, 292.08°)
OKLaboklab(46.58% -0.0147 -0.1656)
OKLCHoklch(46.58% 0.166 264.9)
XYZxyz(12.1610, 9.5644, 44.9123)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A50B5 #B58F2A
analogous
#2A95B5 #2A50B5 #492AB5
triadic
#2A50B5 #B52A50 #50B52A
tetradic
#2A50B5 #B52A95 #B58F2A #2AB549
square
#2A50B5 #B52A95 #B58F2A #2AB549
split-complementary
#2A50B5 #B5492A #95B52A
monochromatic
#132452 #1E3A83 #2A50B5 #486ED4 #7995E0

Accessibility & contrast

On white

7.21
#2A50B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2A50B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A50B5
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A50B5#FFFFFF#000000##FFFFFF
##2A50B51.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a50b5;
/* rgb */ color: rgb(42, 80, 181);
/* oklch */ color: oklch(46.6% 0.166 264.9);
Tailwind
colors: {
  custom: {
    50: '#7880cc',
    500: '#2a50b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a50b5;
$custom-light: #7880cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a50b5",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 181
  },
  "hsl": {
    "h": 223.597,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46576,
    "c": 0.16625,
    "h": 264.9
  },
  "luminance": 0.09566
}

Semantic roles & 50–950 ramp

primary
#2A50B5
secondary
#C8B173
accent
#B942E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A50B5

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

Preview Lab → · Contrast checker → · Palette generator →

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