#2A51C0#2A51C0

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

Color values

HEX#2A51C0
RGBrgb(42, 81, 192)
HSLhsl(224, 64%, 46%)
HSVhsv(224, 78%, 75%)
CMYKcmyk(78.1%, 57.8%, 0%, 24.7%)
CIE-LABlab(38.17, 26.81, -62.05)
CIE-LCHlch(38.17, 67.60, 293.37°)
OKLaboklab(47.68% -0.0148 -0.1792)
OKLCHoklch(47.68% 0.18 265.3)
XYZxyz(13.4083, 10.1813, 51.1175)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A51C0 #C0992A
analogous
#2A9CC0 #2A51C0 #4E2AC0
triadic
#2A51C0 #C02A51 #51C02A
tetradic
#2A51C0 #C02A9C #C0992A #2AC04E
square
#2A51C0 #C02A9C #C0992A #2AC04E
split-complementary
#2A51C0 #C04E2A #9CC02A
monochromatic
#14275C #1F3C8E #2A51C0 #4F73D8 #819BE3

Accessibility & contrast

On white

6.92
#2A51C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2A51C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A51C0
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A51C0#FFFFFF#000000##FFFFFF
##2A51C01.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#0053BE
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2a51c0;
/* rgb */ color: rgb(42, 81, 192);
/* oklch */ color: oklch(47.7% 0.180 265.3);
Tailwind
colors: {
  custom: {
    50: '#7b81d4',
    500: '#2a51c0',
    950: '#000000',
  },
}
SCSS
$custom: #2a51c0;
$custom-light: #7b81d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a51c0",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 192
  },
  "hsl": {
    "h": 224.4,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47683,
    "c": 0.17982,
    "h": 265.3
  },
  "luminance": 0.10183
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A51C0

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

Preview Lab → · Contrast checker → · Palette generator →

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