#2A50A2#2A50A2

#2A50A2 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.140 H 263.2°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#2A50A2
RGBrgb(42, 80, 162)
HSLhsl(221, 59%, 40%)
HSVhsv(221, 74%, 64%)
CMYKcmyk(74.1%, 50.6%, 0%, 36.5%)
CIE-LABlab(35.67, 16.00, -48.36)
CIE-LCHlch(35.67, 50.94, 288.31°)
OKLaboklab(45.09% -0.0165 -0.1389)
OKLCHoklch(45.09% 0.14 263.2)
XYZxyz(10.3428, 8.8371, 35.3361)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A50A2 #A27C2A
analogous
#2A8CA2 #2A50A2 #402AA2
triadic
#2A50A2 #A22A50 #50A22A
tetradic
#2A50A2 #A22A8C #A27C2A #2AA240
square
#2A50A2 #A22A8C #A27C2A #2AA240
split-complementary
#2A50A2 #A2402A #8CA22A
monochromatic
#112041 #1D3871 #2A50A2 #3D6ACD #6D8FD9

Accessibility & contrast

On white

7.59
#2A50A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2A50A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A50A2
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A50A2#FFFFFF#000000##FFFFFF
##2A50A21.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5AA5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#006471
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a50a2;
/* rgb */ color: rgb(42, 80, 162);
/* oklch */ color: oklch(45.1% 0.140 263.2);
Tailwind
colors: {
  custom: {
    50: '#7480be',
    500: '#2a50a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a50a2;
$custom-light: #7480be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a50a2",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 162
  },
  "hsl": {
    "h": 221,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.45092,
    "c": 0.13993,
    "h": 263.2
  },
  "luminance": 0.08838
}

Semantic roles & 50–950 ramp

primary
#2A50A2
secondary
#C0A468
accent
#B146E2
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A50A2

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

Preview Lab → · Contrast checker → · Palette generator →

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