#5145CD#5145CD

#5145CD is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 48.9% C 0.201 H 279.9°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#5145CD
RGBrgb(81, 69, 205)
HSLhsl(245, 58%, 54%)
HSVhsv(245, 66%, 80%)
CMYKcmyk(60.5%, 66.3%, 0%, 19.6%)
CIE-LABlab(38.57, 43.91, -68.86)
CIE-LCHlch(38.57, 81.67, 302.53°)
OKLaboklab(48.9% 0.0345 -0.1983)
OKLCHoklch(48.9% 0.201 279.9)
XYZxyz(16.5374, 10.4121, 58.8841)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145CD #C1CD45
analogous
#457DCD #5145CD #9545CD
triadic
#5145CD #CD5145 #45CD51
tetradic
#5145CD #CD457D #C1CD45 #45CD95
square
#5145CD #CD457D #C1CD45 #45CD95
split-complementary
#5145CD #CD9545 #7DCD45
monochromatic
#282077 #382DA8 #5145CD #7E75DA #ABA5E7

Accessibility & contrast

On white

6.81
#5145CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5145CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145CD
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145CD#FFFFFF#000000##FFFFFF
##5145CD1.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#0056CA
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5145cd;
/* rgb */ color: rgb(81, 69, 205);
/* oklch */ color: oklch(48.9% 0.201 279.9);
Tailwind
colors: {
  custom: {
    50: '#8f7add',
    500: '#5145cd',
    950: '#000000',
  },
}
SCSS
$custom: #5145cd;
$custom-light: #8f7add;
$custom-dark: #000000;
JSON
{
  "hex": "#5145cd",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 245.294,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.48898,
    "c": 0.20133,
    "h": 279.9
  },
  "luminance": 0.10413
}

Semantic roles & 50–950 ramp

primary
#5145CD
secondary
#CFD49A
accent
#E147D3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5145CD

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

Preview Lab → · Contrast checker → · Palette generator →

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