#2A50A5#2A50A5

#2A50A5 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.3% C 0.144 H 263.6°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#2A50A5
RGBrgb(42, 80, 165)
HSLhsl(221, 59%, 41%)
HSVhsv(221, 75%, 65%)
CMYKcmyk(74.5%, 51.5%, 0%, 35.3%)
CIE-LABlab(35.88, 17.15, -49.81)
CIE-LCHlch(35.88, 52.69, 289.00°)
OKLaboklab(45.32% -0.0161 -0.1432)
OKLCHoklch(45.32% 0.144 263.6)
XYZxyz(10.6126, 8.9450, 36.7573)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A50A5 #A57F2A
analogous
#2A8DA5 #2A50A5 #412AA5
triadic
#2A50A5 #A52A50 #50A52A
tetradic
#2A50A5 #A52A8D #A57F2A #2AA541
square
#2A50A5 #A52A8D #A57F2A #2AA541
split-complementary
#2A50A5 #A5412A #8DA52A
monochromatic
#112143 #1E3874 #2A50A5 #3E6BCE #6F90DA

Accessibility & contrast

On white

7.53
#2A50A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2A50A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A50A5
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A50A5#FFFFFF#000000##FFFFFF
##2A50A51.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5AA8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a50a5;
/* rgb */ color: rgb(42, 80, 165);
/* oklch */ color: oklch(45.3% 0.144 263.6);
Tailwind
colors: {
  custom: {
    50: '#7580c0',
    500: '#2a50a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a50a5;
$custom-light: #7580c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a50a5",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 165
  },
  "hsl": {
    "h": 221.463,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45319,
    "c": 0.14415,
    "h": 263.6
  },
  "luminance": 0.08946
}

Semantic roles & 50–950 ramp

primary
#2A50A5
secondary
#C1A669
accent
#B245E3
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A50A5

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

Preview Lab → · Contrast checker → · Palette generator →

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