#2A51C1#2A51C1

#2A51C1 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.8% C 0.181 H 265.3°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#2A51C1
RGBrgb(42, 81, 193)
HSLhsl(225, 64%, 46%)
HSVhsv(225, 78%, 76%)
CMYKcmyk(78.2%, 58%, 0%, 24.3%)
CIE-LABlab(38.24, 27.19, -62.51)
CIE-LCHlch(38.24, 68.16, 293.51°)
OKLaboklab(47.77% -0.0147 -0.1805)
OKLCHoklch(47.77% 0.181 265.3)
XYZxyz(13.5195, 10.2258, 51.7030)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51C1 #C19A2A
analogous
#2A9CC1 #2A51C1 #4E2AC1
triadic
#2A51C1 #C12A51 #51C12A
tetradic
#2A51C1 #C12A9C #C19A2A #2AC14E
square
#2A51C1 #C12A9C #C19A2A #2AC14E
split-complementary
#2A51C1 #C14E2A #9CC12A
monochromatic
#14275C #1F3C8F #2A51C1 #4F73D9 #829BE4

Accessibility & contrast

On white

6.90
#2A51C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A51C1
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51C1#FFFFFF#000000##FFFFFF
##2A51C11.006.903.056.90
#FFFFFF6.901.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#006D81
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a51c1;
/* rgb */ color: rgb(42, 81, 193);
/* oklch */ color: oklch(47.8% 0.181 265.3);
Tailwind
colors: {
  custom: {
    50: '#7b81d5',
    500: '#2a51c1',
    950: '#000000',
  },
}
SCSS
$custom: #2a51c1;
$custom-light: #7b81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51c1",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 193
  },
  "hsl": {
    "h": 224.503,
    "s": 64.255,
    "l": 46.078
  },
  "oklch": {
    "l": 0.47767,
    "c": 0.18114,
    "h": 265.3
  },
  "luminance": 0.10227
}

Semantic roles & 50–950 ramp

primary
#2A51C1
secondary
#CDB77A
accent
#BC41E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2A51C1

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

Preview Lab → · Contrast checker → · Palette generator →

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