#5145D4#5145D4

#5145D4 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.5% C 0.210 H 279.2°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#5145D4
RGBrgb(81, 69, 212)
HSLhsl(245, 62%, 55%)
HSVhsv(245, 67%, 83%)
CMYKcmyk(61.8%, 67.5%, 0%, 16.9%)
CIE-LABlab(39.17, 46.11, -71.92)
CIE-LCHlch(39.17, 85.43, 302.67°)
OKLaboklab(49.51% 0.0336 -0.2073)
OKLCHoklch(49.51% 0.21 279.2)
XYZxyz(17.4013, 10.7577, 63.4340)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145D4 #C8D445
analogous
#4580D4 #5145D4 #9845D4
triadic
#5145D4 #D45145 #45D451
tetradic
#5145D4 #D44580 #C8D445 #45D498
square
#5145D4 #D44580 #C8D445 #45D498
split-complementary
#5145D4 #D49845 #80D445
monochromatic
#261E81 #3529B3 #5145D4 #8077DF #AEA8EB

Accessibility & contrast

On white

6.66
#5145D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5145D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145D4
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145D4#FFFFFF#000000##FFFFFF
##5145D41.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D8
Deuteranopia (green-blind)
#0057D1
Tritanopia (blue-blind)
#006B87
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5145d4;
/* rgb */ color: rgb(81, 69, 212);
/* oklch */ color: oklch(49.5% 0.210 279.2);
Tailwind
colors: {
  custom: {
    50: '#907ae2',
    500: '#5145d4',
    950: '#000000',
  },
}
SCSS
$custom: #5145d4;
$custom-light: #907ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#5145d4",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 212
  },
  "hsl": {
    "h": 245.035,
    "s": 62.445,
    "l": 55.098
  },
  "oklch": {
    "l": 0.49513,
    "c": 0.21003,
    "h": 279.2
  },
  "luminance": 0.10759
}

Semantic roles & 50–950 ramp

primary
#5145D4
secondary
#D3D89C
accent
#E642D8
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5145D4

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

Preview Lab → · Contrast checker → · Palette generator →

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