#5145E2#5145E2

#5145E2 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.8% C 0.227 H 278.0°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5145E2
RGBrgb(81, 69, 226)
HSLhsl(245, 73%, 58%)
HSVhsv(245, 69%, 89%)
CMYKcmyk(64.2%, 69.5%, 0%, 11.4%)
CIE-LABlab(40.40, 50.49, -77.91)
CIE-LCHlch(40.40, 92.84, 302.94°)
OKLaboklab(50.78% 0.0315 -0.2249)
OKLCHoklch(50.78% 0.227 278)
XYZxyz(19.2445, 11.4950, 73.1414)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145E2 #D6E245
analogous
#4587E2 #5145E2 #9F45E2
triadic
#5145E2 #E25145 #45E251
tetradic
#5145E2 #E24587 #D6E245 #45E29F
square
#5145E2 #E24587 #D6E245 #45E29F
split-complementary
#5145E2 #E29F45 #87E245
monochromatic
#211795 #2D20CA #5145E2 #837AEA #B4AFF3

Accessibility & contrast

On white

6.36
#5145E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5145E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145E2
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145E2#FFFFFF#000000##FFFFFF
##5145E21.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E7
Deuteranopia (green-blind)
#0059DF
Tritanopia (blue-blind)
#00708F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5145e2;
/* rgb */ color: rgb(81, 69, 226);
/* oklch */ color: oklch(50.8% 0.227 278.0);
Tailwind
colors: {
  custom: {
    50: '#937aec',
    500: '#5145e2',
    950: '#000000',
  },
}
SCSS
$custom: #5145e2;
$custom-light: #937aec;
$custom-dark: #000000;
JSON
{
  "hex": "#5145e2",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 226
  },
  "hsl": {
    "h": 244.586,
    "s": 73.023,
    "l": 57.843
  },
  "oklch": {
    "l": 0.50775,
    "c": 0.22708,
    "h": 278
  },
  "luminance": 0.11497
}

Semantic roles & 50–950 ramp

primary
#5145E2
secondary
#DCE1A2
accent
#F038E2
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5145E2

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

Preview Lab → · Contrast checker → · Palette generator →

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