#2E51C2#2E51C2

#2E51C2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.181 H 266.4°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#2E51C2
RGBrgb(46, 81, 194)
HSLhsl(226, 62%, 47%)
HSVhsv(226, 76%, 76%)
CMYKcmyk(76.3%, 58.2%, 0%, 23.9%)
CIE-LABlab(38.48, 27.99, -62.70)
CIE-LCHlch(38.48, 68.67, 294.06°)
OKLaboklab(48.01% -0.0115 -0.181)
OKLCHoklch(48.01% 0.181 266.4)
XYZxyz(13.8033, 10.3592, 52.3005)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51C2 #C29F2E
analogous
#2E9BC2 #2E51C2 #552EC2
triadic
#2E51C2 #C22E51 #51C22E
tetradic
#2E51C2 #C22E9B #C29F2E #2EC255
square
#2E51C2 #C22E9B #C29F2E #2EC255
split-complementary
#2E51C2 #C2552E #9BC22E
monochromatic
#17285F #223C91 #2E51C2 #5675D7 #889DE3

Accessibility & contrast

On white

6.84
#2E51C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2E51C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E51C2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51C2#FFFFFF#000000##FFFFFF
##2E51C21.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e51c2;
/* rgb */ color: rgb(46, 81, 194);
/* oklch */ color: oklch(48.0% 0.181 266.4);
Tailwind
colors: {
  custom: {
    50: '#7d81d5',
    500: '#2e51c2',
    950: '#000000',
  },
}
SCSS
$custom: #2e51c2;
$custom-light: #7d81d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51c2",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 194
  },
  "hsl": {
    "h": 225.811,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.48011,
    "c": 0.18141,
    "h": 266.4
  },
  "luminance": 0.10361
}

Semantic roles & 50–950 ramp

primary
#2E51C2
secondary
#CCBA7F
accent
#BF43E5
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2E51C2

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

Preview Lab → · Contrast checker → · Palette generator →

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