#2A50A6#2A50A6

#2A50A6 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.146 H 263.7°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#2A50A6
RGBrgb(42, 80, 166)
HSLhsl(222, 60%, 41%)
HSVhsv(222, 75%, 65%)
CMYKcmyk(74.7%, 51.8%, 0%, 34.9%)
CIE-LABlab(35.95, 17.54, -50.30)
CIE-LCHlch(35.95, 53.27, 289.22°)
OKLaboklab(45.4% -0.016 -0.1447)
OKLCHoklch(45.4% 0.146 263.7)
XYZxyz(10.7040, 8.9816, 37.2385)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A50A6 #A6802A
analogous
#2A8EA6 #2A50A6 #422AA6
triadic
#2A50A6 #A62A50 #50A62A
tetradic
#2A50A6 #A62A8E #A6802A #2AA642
square
#2A50A6 #A62A8E #A6802A #2AA642
split-complementary
#2A50A6 #A6422A #8EA62A
monochromatic
#112144 #1E3875 #2A50A6 #3F6BCE #7090DB

Accessibility & contrast

On white

7.51
#2A50A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2A50A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A50A6
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A50A6#FFFFFF#000000##FFFFFF
##2A50A61.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195BA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a50a6;
/* rgb */ color: rgb(42, 80, 166);
/* oklch */ color: oklch(45.4% 0.146 263.7);
Tailwind
colors: {
  custom: {
    50: '#7580c1',
    500: '#2a50a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a50a6;
$custom-light: #7580c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a50a6",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 166
  },
  "hsl": {
    "h": 221.613,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.45395,
    "c": 0.14555,
    "h": 263.7
  },
  "luminance": 0.08983
}

Semantic roles & 50–950 ramp

primary
#2A50A6
secondary
#C2A76A
accent
#B245E3
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2A50A6

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

Preview Lab → · Contrast checker → · Palette generator →

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