#2A50B4#2A50B4

#2A50B4 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.165 H 264.9°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2A50B4
RGBrgb(42, 80, 180)
HSLhsl(223, 62%, 44%)
HSVhsv(223, 77%, 71%)
CMYKcmyk(76.7%, 55.6%, 0%, 29.4%)
CIE-LABlab(36.97, 22.91, -56.95)
CIE-LCHlch(36.97, 61.38, 291.91°)
OKLaboklab(46.5% -0.0147 -0.1642)
OKLCHoklch(46.5% 0.165 264.9)
XYZxyz(12.0588, 9.5235, 44.3738)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A50B4 #B48E2A
analogous
#2A95B4 #2A50B4 #492AB4
triadic
#2A50B4 #B42A50 #50B42A
tetradic
#2A50B4 #B42A95 #B48E2A #2AB449
square
#2A50B4 #B42A95 #B48E2A #2AB449
split-complementary
#2A50B4 #B4492A #95B42A
monochromatic
#132451 #1E3A82 #2A50B4 #476ED4 #7995E0

Accessibility & contrast

On white

7.23
#2A50B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2A50B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A50B4
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A50B4#FFFFFF#000000##FFFFFF
##2A50B41.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a50b4;
/* rgb */ color: rgb(42, 80, 180);
/* oklch */ color: oklch(46.5% 0.165 264.9);
Tailwind
colors: {
  custom: {
    50: '#7880cb',
    500: '#2a50b4',
    950: '#000000',
  },
}
SCSS
$custom: #2a50b4;
$custom-light: #7880cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a50b4",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 180
  },
  "hsl": {
    "h": 223.478,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.46495,
    "c": 0.16489,
    "h": 264.9
  },
  "luminance": 0.09525
}

Semantic roles & 50–950 ramp

primary
#2A50B4
secondary
#C8B072
accent
#B843E5
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A50B4

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

Preview Lab → · Contrast checker → · Palette generator →

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