#5145D0#5145D0

#5145D0 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.2% C 0.205 H 279.6°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#5145D0
RGBrgb(81, 69, 208)
HSLhsl(245, 60%, 54%)
HSVhsv(245, 67%, 82%)
CMYKcmyk(61.1%, 66.8%, 0%, 18.4%)
CIE-LABlab(38.83, 44.85, -70.17)
CIE-LCHlch(38.83, 83.28, 302.59°)
OKLaboklab(49.16% 0.0341 -0.2022)
OKLCHoklch(49.16% 0.205 279.6)
XYZxyz(16.9030, 10.5584, 60.8095)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145D0 #C4D045
analogous
#457FD0 #5145D0 #9745D0
triadic
#5145D0 #D05145 #45D051
tetradic
#5145D0 #D0457F #C4D045 #45D097
square
#5145D0 #D0457F #C4D045 #45D097
split-complementary
#5145D0 #D09745 #7FD045
monochromatic
#271F7B #372CAC #5145D0 #7F76DC #ACA7E9

Accessibility & contrast

On white

6.75
#5145D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5145D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145D0
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145D0#FFFFFF#000000##FFFFFF
##5145D01.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D4
Deuteranopia (green-blind)
#0056CD
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5145d0;
/* rgb */ color: rgb(81, 69, 208);
/* oklch */ color: oklch(49.2% 0.205 279.6);
Tailwind
colors: {
  custom: {
    50: '#8f7adf',
    500: '#5145d0',
    950: '#000000',
  },
}
SCSS
$custom: #5145d0;
$custom-light: #8f7adf;
$custom-dark: #000000;
JSON
{
  "hex": "#5145d0",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 208
  },
  "hsl": {
    "h": 245.18,
    "s": 59.657,
    "l": 54.314
  },
  "oklch": {
    "l": 0.4916,
    "c": 0.20508,
    "h": 279.6
  },
  "luminance": 0.1056
}

Semantic roles & 50–950 ramp

primary
#5145D0
secondary
#D1D69B
accent
#E345D5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5145D0

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

Preview Lab → · Contrast checker → · Palette generator →

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