#2A51B2#2A51B2

#2A51B2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.161 H 264.4°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#2A51B2
RGBrgb(42, 81, 178)
HSLhsl(223, 62%, 43%)
HSVhsv(223, 76%, 70%)
CMYKcmyk(76.4%, 54.5%, 0%, 30.2%)
CIE-LABlab(37.10, 21.48, -55.57)
CIE-LCHlch(37.10, 59.58, 291.14°)
OKLaboklab(46.54% -0.0156 -0.1601)
OKLCHoklch(46.54% 0.161 264.4)
XYZxyz(11.9303, 9.5901, 43.3332)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51B2 #B28B2A
analogous
#2A95B2 #2A51B2 #472AB2
triadic
#2A51B2 #B22A51 #51B22A
tetradic
#2A51B2 #B22A95 #B28B2A #2AB247
square
#2A51B2 #B22A95 #B28B2A #2AB247
split-complementary
#2A51B2 #B2472A #95B22A
monochromatic
#13244F #1E3A80 #2A51B2 #466ED3 #7795DF

Accessibility & contrast

On white

7.20
#2A51B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2A51B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A51B2
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51B2#FFFFFF#000000##FFFFFF
##2A51B21.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2a51b2;
/* rgb */ color: rgb(42, 81, 178);
/* oklch */ color: oklch(46.5% 0.161 264.4);
Tailwind
colors: {
  custom: {
    50: '#7881ca',
    500: '#2a51b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a51b2;
$custom-light: #7881ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51b2",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 222.794,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.46541,
    "c": 0.16091,
    "h": 264.4
  },
  "luminance": 0.09591
}

Semantic roles & 50–950 ramp

primary
#2A51B2
secondary
#C7AE71
accent
#B643E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2A51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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