#5145EB#5145EB

#5145EB is a mid, highly saturated blue. Relative luminance 0.120; OKLCH L 51.6% C 0.238 H 277.3°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5145EB
RGBrgb(81, 69, 235)
HSLhsl(244, 81%, 60%)
HSVhsv(244, 71%, 92%)
CMYKcmyk(65.5%, 70.6%, 0%, 7.8%)
CIE-LABlab(41.22, 53.28, -81.68)
CIE-LCHlch(41.22, 97.52, 303.12°)
OKLaboklab(51.61% 0.03 -0.2359)
OKLCHoklch(51.61% 0.238 277.3)
XYZxyz(20.5120, 12.0020, 79.8168)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145EB #DFEB45
analogous
#458CEB #5145EB #A445EB
triadic
#5145EB #EB5145 #45EB51
tetradic
#5145EB #EB458C #DFEB45 #45EBA4
square
#5145EB #EB458C #DFEB45 #45EBA4
split-complementary
#5145EB #EBA445 #8CEB45
monochromatic
#1C12A4 #2618DB #5145EB #857CF1 #B8B4F7

Accessibility & contrast

On white

6.18
#5145EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5145EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145EB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145EB#FFFFFF#000000##FFFFFF
##5145EB1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068F0
Deuteranopia (green-blind)
#005AE8
Tritanopia (blue-blind)
#007394
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5145eb;
/* rgb */ color: rgb(81, 69, 235);
/* oklch */ color: oklch(51.6% 0.238 277.3);
Tailwind
colors: {
  custom: {
    50: '#947bf3',
    500: '#5145eb',
    950: '#000000',
  },
}
SCSS
$custom: #5145eb;
$custom-light: #947bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#5145eb",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 235
  },
  "hsl": {
    "h": 244.337,
    "s": 80.583,
    "l": 59.608
  },
  "oklch": {
    "l": 0.51607,
    "c": 0.23779,
    "h": 277.3
  },
  "luminance": 0.12004
}

Semantic roles & 50–950 ramp

primary
#5145EB
secondary
#E1E6A6
accent
#F731E9
background
#FAF7FF
surface
#F3EEFE
border
#CDC9D6
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5145EB

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

Preview Lab → · Contrast checker → · Palette generator →

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