#5155AF#5155AF

#5155AF is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.4% C 0.141 H 278.0°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5155AF
RGBrgb(81, 85, 175)
HSLhsl(237, 37%, 50%)
HSVhsv(237, 54%, 69%)
CMYKcmyk(53.7%, 51.4%, 0%, 31.4%)
CIE-LABlab(40.15, 24.39, -48.76)
CIE-LCHlch(40.15, 54.52, 296.58°)
OKLaboklab(49.36% 0.0196 -0.1392)
OKLCHoklch(49.36% 0.141 278)
XYZxyz(14.3773, 11.3406, 41.9805)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5155AF #AFAB51
analogous
#5184AF #5155AF #7C51AF
triadic
#5155AF #AF5155 #55AF51
tetradic
#5155AF #AF5184 #AFAB51 #51AF7C
square
#5155AF #AF5184 #AFAB51 #51AF7C
split-complementary
#5155AF #AF7C51 #84AF51
monochromatic
#2A2C5C #3D4085 #5155AF #7B7EC2 #A5A7D6

Accessibility & contrast

On white

6.43
#5155AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5155AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5155AF
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5155AF#FFFFFF#000000##FFFFFF
##5155AF1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2762B2
Deuteranopia (green-blind)
#1B5BAD
Tritanopia (blue-blind)
#26697A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5155af;
/* rgb */ color: rgb(81, 85, 175);
/* oklch */ color: oklch(49.4% 0.141 278.0);
Tailwind
colors: {
  custom: {
    50: '#8984c7',
    500: '#5155af',
    950: '#000000',
  },
}
SCSS
$custom: #5155af;
$custom-light: #8984c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5155af",
  "rgb": {
    "r": 81,
    "g": 85,
    "b": 175
  },
  "hsl": {
    "h": 237.447,
    "s": 37.008,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49359,
    "c": 0.14056,
    "h": 278
  },
  "luminance": 0.11341
}

Semantic roles & 50–950 ramp

primary
#5155AF
secondary
#C3C199
accent
#C85BCD
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #5155AF

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

Preview Lab → · Contrast checker → · Palette generator →

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