#5145CF#5145CF

#5145CF is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.1% C 0.204 H 279.7°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#5145CF
RGBrgb(81, 69, 207)
HSLhsl(245, 59%, 54%)
HSVhsv(245, 67%, 81%)
CMYKcmyk(60.9%, 66.7%, 0%, 18.8%)
CIE-LABlab(38.74, 44.54, -69.74)
CIE-LCHlch(38.74, 82.75, 302.57°)
OKLaboklab(49.07% 0.0343 -0.2009)
OKLCHoklch(49.07% 0.204 279.7)
XYZxyz(16.7804, 10.5093, 60.1636)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145CF #C3CF45
analogous
#457ECF #5145CF #9645CF
triadic
#5145CF #CF5145 #45CF51
tetradic
#5145CF #CF457E #C3CF45 #45CF96
square
#5145CF #CF457E #C3CF45 #45CF96
split-complementary
#5145CF #CF9645 #7ECF45
monochromatic
#27207A #372CAB #5145CF #7F76DC #ACA6E8

Accessibility & contrast

On white

6.77
#5145CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5145CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5145CF
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145CF#FFFFFF#000000##FFFFFF
##5145CF1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5145cf;
/* rgb */ color: rgb(81, 69, 207);
/* oklch */ color: oklch(49.1% 0.204 279.7);
Tailwind
colors: {
  custom: {
    50: '#8f7adf',
    500: '#5145cf',
    950: '#000000',
  },
}
SCSS
$custom: #5145cf;
$custom-light: #8f7adf;
$custom-dark: #000000;
JSON
{
  "hex": "#5145cf",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 245.217,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49073,
    "c": 0.20384,
    "h": 279.7
  },
  "luminance": 0.10511
}

Semantic roles & 50–950 ramp

primary
#5145CF
secondary
#D0D59B
accent
#E246D5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5145CF

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

Preview Lab → · Contrast checker → · Palette generator →

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