#2B51C2#2B51C2

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

Color values

HEX#2B51C2
RGBrgb(43, 81, 194)
HSLhsl(225, 64%, 46%)
HSVhsv(225, 78%, 76%)
CMYKcmyk(77.8%, 58.2%, 0%, 23.9%)
CIE-LABlab(38.36, 27.67, -62.90)
CIE-LCHlch(38.36, 68.72, 293.75°)
OKLaboklab(47.89% -0.0139 -0.1817)
OKLCHoklch(47.89% 0.182 265.6)
XYZxyz(13.6729, 10.2919, 52.2944)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B51C2 #C29C2B
analogous
#2B9DC2 #2B51C2 #512BC2
triadic
#2B51C2 #C22B51 #51C22B
tetradic
#2B51C2 #C22B9D #C29C2B #2BC251
square
#2B51C2 #C22B9D #C29C2B #2BC251
split-complementary
#2B51C2 #C2512B #9DC22B
monochromatic
#15275E #203C90 #2B51C2 #5274D9 #849CE4

Accessibility & contrast

On white

6.87
#2B51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2B51C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B51C2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B51C2#FFFFFF#000000##FFFFFF
##2B51C21.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b51c2;
/* rgb */ color: rgb(43, 81, 194);
/* oklch */ color: oklch(47.9% 0.182 265.6);
Tailwind
colors: {
  custom: {
    50: '#7c81d5',
    500: '#2b51c2',
    950: '#000000',
  },
}
SCSS
$custom: #2b51c2;
$custom-light: #7c81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b51c2",
  "rgb": {
    "r": 43,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 224.901,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.47889,
    "c": 0.18221,
    "h": 265.6
  },
  "luminance": 0.10293
}

Semantic roles & 50–950 ramp

primary
#2B51C2
secondary
#CDB87C
accent
#BD41E7
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2B51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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