#5145D1#5145D1

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

Color values

HEX#5145D1
RGBrgb(81, 69, 209)
HSLhsl(245, 60%, 55%)
HSVhsv(245, 67%, 82%)
CMYKcmyk(61.2%, 67%, 0%, 18%)
CIE-LABlab(38.91, 45.17, -70.61)
CIE-LCHlch(38.91, 83.82, 302.61°)
OKLaboklab(49.25% 0.034 -0.2035)
OKLCHoklch(49.25% 0.206 279.5)
XYZxyz(17.0264, 10.6077, 61.4595)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145D1 #C5D145
analogous
#457FD1 #5145D1 #9745D1
triadic
#5145D1 #D15145 #45D151
tetradic
#5145D1 #D1457F #C5D145 #45D197
square
#5145D1 #D1457F #C5D145 #45D197
split-complementary
#5145D1 #D19745 #7FD145
monochromatic
#271F7D #362BAE #5145D1 #7F76DD #ADA7E9

Accessibility & contrast

On white

6.73
#5145D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5145D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145D1
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145D1#FFFFFF#000000##FFFFFF
##5145D11.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D5
Deuteranopia (green-blind)
#0056CE
Tritanopia (blue-blind)
#006A85
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5145d1;
/* rgb */ color: rgb(81, 69, 209);
/* oklch */ color: oklch(49.2% 0.206 279.5);
Tailwind
colors: {
  custom: {
    50: '#907ae0',
    500: '#5145d1',
    950: '#000000',
  },
}
SCSS
$custom: #5145d1;
$custom-light: #907ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#5145d1",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 245.143,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.49248,
    "c": 0.20632,
    "h": 279.5
  },
  "luminance": 0.10609
}

Semantic roles & 50–950 ramp

primary
#5145D1
secondary
#D1D79B
accent
#E344D6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5145D1

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

Preview Lab → · Contrast checker → · Palette generator →

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