#2A51A3#2A51A3

#2A51A3 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.140 H 262.9°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2A51A3
RGBrgb(42, 81, 163)
HSLhsl(221, 59%, 40%)
HSVhsv(221, 74%, 64%)
CMYKcmyk(74.2%, 50.3%, 0%, 36.1%)
CIE-LABlab(36.02, 15.72, -48.38)
CIE-LCHlch(36.02, 50.87, 288.00°)
OKLaboklab(45.39% -0.0173 -0.139)
OKLCHoklch(45.39% 0.14 262.9)
XYZxyz(10.5058, 9.0203, 35.8306)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51A3 #A37C2A
analogous
#2A8DA3 #2A51A3 #3F2AA3
triadic
#2A51A3 #A32A51 #51A32A
tetradic
#2A51A3 #A32A8D #A37C2A #2AA33F
square
#2A51A3 #A32A8D #A37C2A #2AA33F
split-complementary
#2A51A3 #A33F2A #8DA32A
monochromatic
#112142 #1D3972 #2A51A3 #3D6CCD #6E91DA

Accessibility & contrast

On white

7.49
#2A51A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2A51A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A51A3
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51A3#FFFFFF#000000##FFFFFF
##2A51A31.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215BA6
Deuteranopia (green-blind)
#004FA1
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a51a3;
/* rgb */ color: rgb(42, 81, 163);
/* oklch */ color: oklch(45.4% 0.140 262.9);
Tailwind
colors: {
  custom: {
    50: '#7481bf',
    500: '#2a51a3',
    950: '#000000',
  },
}
SCSS
$custom: #2a51a3;
$custom-light: #7481bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51a3",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 163
  },
  "hsl": {
    "h": 220.661,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45385,
    "c": 0.14008,
    "h": 262.9
  },
  "luminance": 0.09021
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A51A3

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

Preview Lab → · Contrast checker → · Palette generator →

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