#2A51C2#2A51C2

#2A51C2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.182 H 265.4°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#2A51C2
RGBrgb(42, 81, 194)
HSLhsl(225, 64%, 46%)
HSVhsv(225, 78%, 76%)
CMYKcmyk(78.4%, 58.2%, 0%, 23.9%)
CIE-LABlab(38.32, 27.57, -62.96)
CIE-LCHlch(38.32, 68.73, 293.64°)
OKLaboklab(47.85% -0.0147 -0.1819)
OKLCHoklch(47.85% 0.182 265.4)
XYZxyz(13.6314, 10.2706, 52.2925)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51C2 #C29B2A
analogous
#2A9DC2 #2A51C2 #4F2AC2
triadic
#2A51C2 #C22A51 #51C22A
tetradic
#2A51C2 #C22A9D #C29B2A #2AC24F
square
#2A51C2 #C22A9D #C29B2A #2AC24F
split-complementary
#2A51C2 #C24F2A #9DC22A
monochromatic
#14275D #1F3C90 #2A51C2 #5073D9 #829BE4

Accessibility & contrast

On white

6.88
#2A51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2A51C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A51C2
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51C2#FFFFFF#000000##FFFFFF
##2A51C21.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a51c2;
/* rgb */ color: rgb(42, 81, 194);
/* oklch */ color: oklch(47.9% 0.182 265.4);
Tailwind
colors: {
  custom: {
    50: '#7c81d5',
    500: '#2a51c2',
    950: '#000000',
  },
}
SCSS
$custom: #2a51c2;
$custom-light: #7c81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51c2",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 224.605,
    "s": 64.407,
    "l": 46.275
  },
  "oklch": {
    "l": 0.4785,
    "c": 0.18247,
    "h": 265.4
  },
  "luminance": 0.10272
}

Semantic roles & 50–950 ramp

primary
#2A51C2
secondary
#CDB87B
accent
#BD40E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2A51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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