#5145CE#5145CE

#5145CE is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.0% C 0.203 H 279.8°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#5145CE
RGBrgb(81, 69, 206)
HSLhsl(245, 58%, 54%)
HSVhsv(245, 67%, 81%)
CMYKcmyk(60.7%, 66.5%, 0%, 19.2%)
CIE-LABlab(38.66, 44.22, -69.30)
CIE-LCHlch(38.66, 82.21, 302.55°)
OKLaboklab(48.99% 0.0344 -0.1996)
OKLCHoklch(48.99% 0.203 279.8)
XYZxyz(16.6585, 10.4606, 59.5218)
Luminance0.1046 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145CE #C2CE45
analogous
#457ECE #5145CE #9545CE
triadic
#5145CE #CE5145 #45CE51
tetradic
#5145CE #CE457E #C2CE45 #45CE95
square
#5145CE #CE457E #C2CE45 #45CE95
split-complementary
#5145CE #CE9545 #7ECE45
monochromatic
#282079 #372DA9 #5145CE #7E75DB #ACA6E8

Accessibility & contrast

On white

6.79
#5145CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#5145CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145CE
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145CE#FFFFFF#000000##FFFFFF
##5145CE1.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0056CB
Tritanopia (blue-blind)
#006984
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5145ce;
/* rgb */ color: rgb(81, 69, 206);
/* oklch */ color: oklch(49.0% 0.203 279.8);
Tailwind
colors: {
  custom: {
    50: '#8f7ade',
    500: '#5145ce',
    950: '#000000',
  },
}
SCSS
$custom: #5145ce;
$custom-light: #8f7ade;
$custom-dark: #000000;
JSON
{
  "hex": "#5145ce",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 245.255,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48985,
    "c": 0.20259,
    "h": 279.8
  },
  "luminance": 0.10462
}

Semantic roles & 50–950 ramp

primary
#5145CE
secondary
#D0D59A
accent
#E246D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5145CE

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

Preview Lab → · Contrast checker → · Palette generator →

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