#5145AF#5145AF

#5145AF is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.4% C 0.162 H 283.2°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5145AF
RGBrgb(81, 69, 175)
HSLhsl(247, 43%, 48%)
HSVhsv(247, 61%, 69%)
CMYKcmyk(53.7%, 60.6%, 0%, 31.4%)
CIE-LABlab(36.18, 34.40, -55.17)
CIE-LCHlch(36.18, 65.02, 301.95°)
OKLaboklab(46.41% 0.0371 -0.1582)
OKLCHoklch(46.41% 0.162 283.2)
XYZxyz(13.2570, 9.1000, 41.6070)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5145AF #A3AF45
analogous
#456EAF #5145AF #8645AF
triadic
#5145AF #AF5145 #45AF51
tetradic
#5145AF #AF456E #A3AF45 #45AF86
square
#5145AF #AF456E #A3AF45 #45AF86
split-complementary
#5145AF #AF8645 #6EAF45
monochromatic
#282257 #3D3483 #5145AF #766CC5 #9F98D6

Accessibility & contrast

On white

7.45
#5145AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5145AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5145AF
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5145AF#FFFFFF#000000##FFFFFF
##5145AF1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0052AD
Tritanopia (blue-blind)
#295E73
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5145af;
/* rgb */ color: rgb(81, 69, 175);
/* oklch */ color: oklch(46.4% 0.162 283.2);
Tailwind
colors: {
  custom: {
    50: '#8a79c8',
    500: '#5145af',
    950: '#000000',
  },
}
SCSS
$custom: #5145af;
$custom-light: #8a79c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5145af",
  "rgb": {
    "r": 81,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 246.792,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46406,
    "c": 0.16245,
    "h": 283.2
  },
  "luminance": 0.09101
}

Semantic roles & 50–950 ramp

primary
#5145AF
secondary
#BCC28D
accent
#D355C5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5145AF

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

Preview Lab → · Contrast checker → · Palette generator →

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