#5145D2#5145D2

#5145D2 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.3% C 0.208 H 279.4°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#5145D2
RGBrgb(81, 69, 210)
HSLhsl(245, 61%, 55%)
HSVhsv(245, 67%, 82%)
CMYKcmyk(61.4%, 67.1%, 0%, 17.6%)
CIE-LABlab(39.00, 45.48, -71.05)
CIE-LCHlch(39.00, 84.36, 302.63°)
OKLaboklab(49.34% 0.0339 -0.2048)
OKLCHoklch(49.34% 0.208 279.4)
XYZxyz(17.1506, 10.6574, 62.1136)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145D2 #C6D245
analogous
#4580D2 #5145D2 #9745D2
triadic
#5145D2 #D25145 #45D251
tetradic
#5145D2 #D24580 #C6D245 #45D297
square
#5145D2 #D24580 #C6D245 #45D297
split-complementary
#5145D2 #D29745 #80D245
monochromatic
#271F7E #362AAF #5145D2 #7F76DE #ADA8EA

Accessibility & contrast

On white

6.71
#5145D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5145D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145D2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145D2#FFFFFF#000000##FFFFFF
##5145D21.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0056CF
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5145d2;
/* rgb */ color: rgb(81, 69, 210);
/* oklch */ color: oklch(49.3% 0.208 279.4);
Tailwind
colors: {
  custom: {
    50: '#907ae1',
    500: '#5145d2',
    950: '#000000',
  },
}
SCSS
$custom: #5145d2;
$custom-light: #907ae1;
$custom-dark: #000000;
JSON
{
  "hex": "#5145d2",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 245.106,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.49336,
    "c": 0.20756,
    "h": 279.4
  },
  "luminance": 0.10659
}

Semantic roles & 50–950 ramp

primary
#5145D2
secondary
#D2D79C
accent
#E444D6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5145D2

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

Preview Lab → · Contrast checker → · Palette generator →

#5145D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva