#5145EA#5145EA

#5145EA is a mid, highly saturated blue. Relative luminance 0.119; OKLCH L 51.5% C 0.237 H 277.3°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#5145EA
RGBrgb(81, 69, 234)
HSLhsl(244, 80%, 59%)
HSVhsv(244, 71%, 92%)
CMYKcmyk(65.4%, 70.5%, 0%, 8.2%)
CIE-LABlab(41.13, 52.97, -81.26)
CIE-LCHlch(41.13, 97.00, 303.10°)
OKLaboklab(51.51% 0.0302 -0.2347)
OKLCHoklch(51.51% 0.237 277.3)
XYZxyz(20.3679, 11.9443, 79.0581)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145EA #DEEA45
analogous
#458BEA #5145EA #A445EA
triadic
#5145EA #EA5145 #45EA51
tetradic
#5145EA #EA458B #DEEA45 #45EAA4
square
#5145EA #EA458B #DEEA45 #45EAA4
split-complementary
#5145EA #EAA445 #8BEA45
monochromatic
#1D12A2 #2719D9 #5145EA #847CF0 #B8B3F6

Accessibility & contrast

On white

6.20
#5145EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#5145EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145EA
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145EA#FFFFFF#000000##FFFFFF
##5145EA1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068EF
Deuteranopia (green-blind)
#005AE7
Tritanopia (blue-blind)
#007393
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5145ea;
/* rgb */ color: rgb(81, 69, 234);
/* oklch */ color: oklch(51.5% 0.237 277.3);
Tailwind
colors: {
  custom: {
    50: '#947bf2',
    500: '#5145ea',
    950: '#000000',
  },
}
SCSS
$custom: #5145ea;
$custom-light: #947bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#5145ea",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 234
  },
  "hsl": {
    "h": 244.364,
    "s": 79.71,
    "l": 59.412
  },
  "oklch": {
    "l": 0.51514,
    "c": 0.23661,
    "h": 277.3
  },
  "luminance": 0.11946
}

Semantic roles & 50–950 ramp

primary
#5145EA
secondary
#E1E6A5
accent
#F632E8
background
#FAF7FF
surface
#F3EEFE
border
#CDC9D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5145EA

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

Preview Lab → · Contrast checker → · Palette generator →

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