#5145CB#5145CB

#5145CB is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.7% C 0.199 H 280.1°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5145CB
RGBrgb(81, 69, 203)
HSLhsl(245, 56%, 53%)
HSVhsv(245, 66%, 80%)
CMYKcmyk(60.1%, 66%, 0%, 20.4%)
CIE-LABlab(38.40, 43.28, -67.97)
CIE-LCHlch(38.40, 80.58, 302.48°)
OKLaboklab(48.73% 0.0348 -0.1958)
OKLCHoklch(48.73% 0.199 280.1)
XYZxyz(16.2975, 10.3162, 57.6207)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145CB #BFCB45
analogous
#457CCB #5145CB #9445CB
triadic
#5145CB #CB5145 #45CB51
tetradic
#5145CB #CB457C #BFCB45 #45CB94
square
#5145CB #CB457C #BFCB45 #45CB94
split-complementary
#5145CB #CB9445 #7CCB45
monochromatic
#282175 #392EA5 #5145CB #7E75D8 #AAA5E6

Accessibility & contrast

On white

6.86
#5145CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5145CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145CB
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145CB#FFFFFF#000000##FFFFFF
##5145CB1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCF
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#006882
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5145cb;
/* rgb */ color: rgb(81, 69, 203);
/* oklch */ color: oklch(48.7% 0.199 280.1);
Tailwind
colors: {
  custom: {
    50: '#8f7adc',
    500: '#5145cb',
    950: '#000000',
  },
}
SCSS
$custom: #5145cb;
$custom-light: #8f7adc;
$custom-dark: #000000;
JSON
{
  "hex": "#5145cb",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 203
  },
  "hsl": {
    "h": 245.373,
    "s": 56.303,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48725,
    "c": 0.19882,
    "h": 280.1
  },
  "luminance": 0.10317
}

Semantic roles & 50–950 ramp

primary
#5145CB
secondary
#CED399
accent
#E048D2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5145CB

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

Preview Lab → · Contrast checker → · Palette generator →

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