#6157BC#6157BC

#6157BC is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.9% C 0.153 H 284.2°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#6157BC
RGBrgb(97, 87, 188)
HSLhsl(246, 43%, 54%)
HSVhsv(246, 54%, 74%)
CMYKcmyk(48.4%, 53.7%, 0%, 26.3%)
CIE-LABlab(42.74, 30.76, -52.14)
CIE-LCHlch(42.74, 60.54, 300.54°)
OKLaboklab(51.89% 0.0376 -0.1487)
OKLCHoklch(51.89% 0.153 284.2)
XYZxyz(17.4124, 12.9878, 49.1566)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157BC #B2BC57
analogous
#5780BC #6157BC #9457BC
triadic
#6157BC #BC6157 #57BC61
tetradic
#6157BC #BC5780 #B2BC57 #57BC94
square
#6157BC #BC5780 #B2BC57 #57BC94
split-complementary
#6157BC #BC9457 #80BC57
monochromatic
#322C6D #463D99 #6157BC #8A83CD #B3AFDF

Accessibility & contrast

On white

5.84
#6157BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#6157BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157BC
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157BC#FFFFFF#000000##FFFFFF
##6157BC1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2168BF
Deuteranopia (green-blind)
#1C62BA
Tritanopia (blue-blind)
#416D81
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6157bc;
/* rgb */ color: rgb(97, 87, 188);
/* oklch */ color: oklch(51.9% 0.153 284.2);
Tailwind
colors: {
  custom: {
    50: '#9486d1',
    500: '#6157bc',
    950: '#000000',
  },
}
SCSS
$custom: #6157bc;
$custom-light: #9486d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6157bc",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 188
  },
  "hsl": {
    "h": 245.941,
    "s": 42.979,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51888,
    "c": 0.15336,
    "h": 284.2
  },
  "luminance": 0.12989
}

Semantic roles & 50–950 ramp

primary
#6157BC
secondary
#C9CDA2
accent
#D355C6
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #6157BC

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

Preview Lab → · Contrast checker → · Palette generator →

#6157BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva