#2A50BA#2A50BA

#2A50BA is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.173 H 265.2°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2A50BA
RGBrgb(42, 80, 186)
HSLhsl(224, 63%, 45%)
HSVhsv(224, 77%, 73%)
CMYKcmyk(77.4%, 57%, 0%, 27.1%)
CIE-LABlab(37.43, 25.19, -59.73)
CIE-LCHlch(37.43, 64.83, 292.87°)
OKLaboklab(46.99% -0.0144 -0.1724)
OKLCHoklch(46.99% 0.173 265.2)
XYZxyz(12.6833, 9.7733, 47.6628)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A50BA #BA942A
analogous
#2A98BA #2A50BA #4C2ABA
triadic
#2A50BA #BA2A50 #50BA2A
tetradic
#2A50BA #BA2A98 #BA942A #2ABA4C
square
#2A50BA #BA2A98 #BA942A #2ABA4C
split-complementary
#2A50BA #BA4C2A #98BA2A
monochromatic
#132556 #1F3B88 #2A50BA #4B70D6 #7D97E2

Accessibility & contrast

On white

7.11
#2A50BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2A50BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A50BA
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A50BA#FFFFFF#000000##FFFFFF
##2A50BA1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#006A7D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a50ba;
/* rgb */ color: rgb(42, 80, 186);
/* oklch */ color: oklch(47.0% 0.173 265.2);
Tailwind
colors: {
  custom: {
    50: '#7a80d0',
    500: '#2a50ba',
    950: '#000000',
  },
}
SCSS
$custom: #2a50ba;
$custom-light: #7a80d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a50ba",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 186
  },
  "hsl": {
    "h": 224.167,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.46986,
    "c": 0.17301,
    "h": 265.2
  },
  "luminance": 0.09775
}

Semantic roles & 50–950 ramp

primary
#2A50BA
secondary
#CAB476
accent
#BB42E6
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2A50BA

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

Preview Lab → · Contrast checker → · Palette generator →

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