#5146AF#5146AF

#5146AF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.6% C 0.161 H 282.9°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5146AF
RGBrgb(81, 70, 175)
HSLhsl(246, 43%, 48%)
HSVhsv(246, 60%, 69%)
CMYKcmyk(53.7%, 60%, 0%, 31.4%)
CIE-LABlab(36.41, 33.79, -54.79)
CIE-LCHlch(36.41, 64.37, 301.66°)
OKLaboklab(46.58% 0.036 -0.157)
OKLCHoklch(46.58% 0.161 282.9)
XYZxyz(13.3190, 9.2240, 41.6277)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5146AF #A4AF46
analogous
#466FAF #5146AF #8546AF
triadic
#5146AF #AF5146 #46AF51
tetradic
#5146AF #AF466F #A4AF46 #46AF85
square
#5146AF #AF466F #A4AF46 #46AF85
split-complementary
#5146AF #AF8546 #6FAF46
monochromatic
#292358 #3D3583 #5146AF #776DC5 #A099D6

Accessibility & contrast

On white

7.38
#5146AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5146AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5146AF
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5146AF#FFFFFF#000000##FFFFFF
##5146AF1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5146af;
/* rgb */ color: rgb(81, 70, 175);
/* oklch */ color: oklch(46.6% 0.161 282.9);
Tailwind
colors: {
  custom: {
    50: '#8a7ac8',
    500: '#5146af',
    950: '#000000',
  },
}
SCSS
$custom: #5146af;
$custom-light: #8a7ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#5146af",
  "rgb": {
    "r": 81,
    "g": 70,
    "b": 175
  },
  "hsl": {
    "h": 246.286,
    "s": 42.857,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46579,
    "c": 0.16112,
    "h": 282.9
  },
  "luminance": 0.09225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5146AF

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

Preview Lab → · Contrast checker → · Palette generator →

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