#2A50B2#2A50B2

#2A50B2 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.3% C 0.162 H 264.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2A50B2
RGBrgb(42, 80, 178)
HSLhsl(223, 62%, 43%)
HSVhsv(223, 76%, 70%)
CMYKcmyk(76.4%, 55.1%, 0%, 30.2%)
CIE-LABlab(36.82, 22.14, -56.01)
CIE-LCHlch(36.82, 60.23, 291.57°)
OKLaboklab(46.33% -0.0149 -0.1615)
OKLCHoklch(46.33% 0.162 264.7)
XYZxyz(11.8565, 9.4426, 43.3086)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A50B2 #B28C2A
analogous
#2A94B2 #2A50B2 #482AB2
triadic
#2A50B2 #B22A50 #50B22A
tetradic
#2A50B2 #B22A94 #B28C2A #2AB248
square
#2A50B2 #B22A94 #B28C2A #2AB248
split-complementary
#2A50B2 #B2482A #94B22A
monochromatic
#13234F #1E3A80 #2A50B2 #466DD3 #7794DF

Accessibility & contrast

On white

7.27
#2A50B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2A50B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A50B2
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A50B2#FFFFFF#000000##FFFFFF
##2A50B21.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006879
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a50b2;
/* rgb */ color: rgb(42, 80, 178);
/* oklch */ color: oklch(46.3% 0.162 264.7);
Tailwind
colors: {
  custom: {
    50: '#7880ca',
    500: '#2a50b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a50b2;
$custom-light: #7880ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a50b2",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 178
  },
  "hsl": {
    "h": 223.235,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46334,
    "c": 0.16215,
    "h": 264.7
  },
  "luminance": 0.09444
}

Semantic roles & 50–950 ramp

primary
#2A50B2
secondary
#C7AF71
accent
#B843E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A50B2

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

Preview Lab → · Contrast checker → · Palette generator →

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