#2A50A4#2A50A4

#2A50A4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.2% C 0.143 H 263.5°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#2A50A4
RGBrgb(42, 80, 164)
HSLhsl(221, 59%, 40%)
HSVhsv(221, 74%, 64%)
CMYKcmyk(74.4%, 51.2%, 0%, 35.7%)
CIE-LABlab(35.81, 16.77, -49.33)
CIE-LCHlch(35.81, 52.10, 288.78°)
OKLaboklab(45.24% -0.0163 -0.1418)
OKLCHoklch(45.24% 0.143 263.5)
XYZxyz(10.5220, 8.9088, 36.2798)
Luminance0.0891 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A50A4 #A47E2A
analogous
#2A8DA4 #2A50A4 #412AA4
triadic
#2A50A4 #A42A50 #50A42A
tetradic
#2A50A4 #A42A8D #A47E2A #2AA441
square
#2A50A4 #A42A8D #A47E2A #2AA441
split-complementary
#2A50A4 #A4412A #8DA42A
monochromatic
#112043 #1E3873 #2A50A4 #3E6ACD #6E90DA

Accessibility & contrast

On white

7.55
#2A50A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A50A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A50A4
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A50A4#FFFFFF#000000##FFFFFF
##2A50A41.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5AA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a50a4;
/* rgb */ color: rgb(42, 80, 164);
/* oklch */ color: oklch(45.2% 0.143 263.5);
Tailwind
colors: {
  custom: {
    50: '#7580c0',
    500: '#2a50a4',
    950: '#000000',
  },
}
SCSS
$custom: #2a50a4;
$custom-light: #7580c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a50a4",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 164
  },
  "hsl": {
    "h": 221.311,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45243,
    "c": 0.14274,
    "h": 263.5
  },
  "luminance": 0.0891
}

Semantic roles & 50–950 ramp

primary
#2A50A4
secondary
#C1A569
accent
#B145E2
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A50A4

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

Preview Lab → · Contrast checker → · Palette generator →

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