#515EC2#515EC2

#515EC2 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.4% C 0.155 H 274.2°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#515EC2
RGBrgb(81, 94, 194)
HSLhsl(233, 48%, 54%)
HSVhsv(233, 58%, 76%)
CMYKcmyk(58.2%, 51.5%, 0%, 23.9%)
CIE-LABlab(43.72, 25.00, -54.12)
CIE-LCHlch(43.72, 59.61, 294.79°)
OKLaboklab(52.45% 0.0114 -0.1549)
OKLCHoklch(52.45% 0.155 274.2)
XYZxyz(17.1305, 13.6485, 52.7602)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#515EC2 #C2B551
analogous
#5197C2 #515EC2 #7D51C2
triadic
#515EC2 #C2515E #5EC251
tetradic
#515EC2 #C25197 #C2B551 #51C27D
square
#515EC2 #C25197 #C2B551 #51C27D
split-complementary
#515EC2 #C27D51 #97C251
monochromatic
#283071 #37439E #515EC2 #7E88D2 #ACB2E2

Accessibility & contrast

On white

5.63
#515EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#515EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #515EC2
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##515EC2#FFFFFF#000000##FFFFFF
##515EC21.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#266CC6
Deuteranopia (green-blind)
#0C63C0
Tritanopia (blue-blind)
#007587
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #515ec2;
/* rgb */ color: rgb(81, 94, 194);
/* oklch */ color: oklch(52.4% 0.155 274.2);
Tailwind
colors: {
  custom: {
    50: '#8b8bd5',
    500: '#515ec2',
    950: '#000000',
  },
}
SCSS
$custom: #515ec2;
$custom-light: #8b8bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#515ec2",
  "rgb": {
    "r": 81,
    "g": 94,
    "b": 194
  },
  "hsl": {
    "h": 233.097,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52448,
    "c": 0.15528,
    "h": 274.2
  },
  "luminance": 0.1365
}

Semantic roles & 50–950 ramp

primary
#515EC2
secondary
#D0CA9F
accent
#C850D8
background
#F9F8FD
surface
#F1F0FA
border
#CBCBD3
text
#0D0C14
muted
#7E7D83

Preview Lab

Preview with #515EC2

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

Preview Lab → · Contrast checker → · Palette generator →

#515EC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva