#5145D3#5145D3

#5145D3 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.4% C 0.209 H 279.3°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5145D3
RGBrgb(81, 69, 211)
HSLhsl(245, 62%, 55%)
HSVhsv(245, 67%, 83%)
CMYKcmyk(61.6%, 67.3%, 0%, 17.3%)
CIE-LABlab(39.08, 45.80, -71.48)
CIE-LCHlch(39.08, 84.90, 302.65°)
OKLaboklab(49.43% 0.0337 -0.2061)
OKLCHoklch(49.43% 0.209 279.3)
XYZxyz(17.2756, 10.7074, 62.7718)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145D3 #C7D345
analogous
#4580D3 #5145D3 #9845D3
triadic
#5145D3 #D35145 #45D351
tetradic
#5145D3 #D34580 #C7D345 #45D398
square
#5145D3 #D34580 #C7D345 #45D398
split-complementary
#5145D3 #D39845 #80D345
monochromatic
#261E7F #352AB1 #5145D3 #7F76DF #AEA8EA

Accessibility & contrast

On white

6.68
#5145D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5145D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145D3
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145D3#FFFFFF#000000##FFFFFF
##5145D31.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#0056D0
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5145d3;
/* rgb */ color: rgb(81, 69, 211);
/* oklch */ color: oklch(49.4% 0.209 279.3);
Tailwind
colors: {
  custom: {
    50: '#907ae2',
    500: '#5145d3',
    950: '#000000',
  },
}
SCSS
$custom: #5145d3;
$custom-light: #907ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#5145d3",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 211
  },
  "hsl": {
    "h": 245.07,
    "s": 61.739,
    "l": 54.902
  },
  "oklch": {
    "l": 0.49425,
    "c": 0.2088,
    "h": 279.3
  },
  "luminance": 0.10709
}

Semantic roles & 50–950 ramp

primary
#5145D3
secondary
#D3D89C
accent
#E543D7
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #5145D3

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

Preview Lab → · Contrast checker → · Palette generator →

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