#5148AF#5148AF

#5148AF is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.9% C 0.158 H 282.4°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#5148AF
RGBrgb(81, 72, 175)
HSLhsl(245, 42%, 48%)
HSVhsv(245, 59%, 69%)
CMYKcmyk(53.7%, 58.9%, 0%, 31.4%)
CIE-LABlab(36.89, 32.56, -54.02)
CIE-LCHlch(36.89, 63.07, 301.08°)
OKLaboklab(46.93% 0.0339 -0.1547)
OKLCHoklch(46.93% 0.158 282.4)
XYZxyz(13.4462, 9.4784, 41.6701)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5148AF #A6AF48
analogous
#4872AF #5148AF #8448AF
triadic
#5148AF #AF5148 #48AF51
tetradic
#5148AF #AF4872 #A6AF48 #48AF84
square
#5148AF #AF4872 #A6AF48 #48AF84
split-complementary
#5148AF #AF8448 #72AF48
monochromatic
#292458 #3D3684 #5148AF #7770C4 #A19BD6

Accessibility & contrast

On white

7.25
#5148AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5148AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5148AF
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5148AF#FFFFFF#000000##FFFFFF
##5148AF1.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#0053AD
Tritanopia (blue-blind)
#296074
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5148af;
/* rgb */ color: rgb(81, 72, 175);
/* oklch */ color: oklch(46.9% 0.158 282.4);
Tailwind
colors: {
  custom: {
    50: '#8a7bc8',
    500: '#5148af',
    950: '#000000',
  },
}
SCSS
$custom: #5148af;
$custom-light: #8a7bc8;
$custom-dark: #000000;
JSON
{
  "hex": "#5148af",
  "rgb": {
    "r": 81,
    "g": 72,
    "b": 175
  },
  "hsl": {
    "h": 245.243,
    "s": 41.7,
    "l": 48.431
  },
  "oklch": {
    "l": 0.46931,
    "c": 0.15842,
    "h": 282.4
  },
  "luminance": 0.09479
}

Semantic roles & 50–950 ramp

primary
#5148AF
secondary
#BEC290
accent
#D256C7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #5148AF

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

Preview Lab → · Contrast checker → · Palette generator →

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