#6157BB#6157BB

#6157BB is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.8% C 0.152 H 284.3°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#6157BB
RGBrgb(97, 87, 187)
HSLhsl(246, 42%, 54%)
HSVhsv(246, 53%, 73%)
CMYKcmyk(48.1%, 53.5%, 0%, 26.7%)
CIE-LABlab(42.68, 30.46, -51.66)
CIE-LCHlch(42.68, 59.97, 300.52°)
OKLaboklab(51.82% 0.0375 -0.1473)
OKLCHoklch(51.82% 0.152 284.3)
XYZxyz(17.3049, 12.9448, 48.5908)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157BB #B1BB57
analogous
#577FBB #6157BB #9357BB
triadic
#6157BB #BB6157 #57BB61
tetradic
#6157BB #BB577F #B1BB57 #57BB93
square
#6157BB #BB577F #B1BB57 #57BB93
split-complementary
#6157BB #BB9357 #7FBB57
monochromatic
#322C6C #463D97 #6157BB #8A83CD #B3AEDE

Accessibility & contrast

On white

5.85
#6157BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#6157BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157BB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157BB#FFFFFF#000000##FFFFFF
##6157BB1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2368BE
Deuteranopia (green-blind)
#1E62B9
Tritanopia (blue-blind)
#426D80
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6157bb;
/* rgb */ color: rgb(97, 87, 187);
/* oklch */ color: oklch(51.8% 0.152 284.3);
Tailwind
colors: {
  custom: {
    50: '#9486d0',
    500: '#6157bb',
    950: '#000000',
  },
}
SCSS
$custom: #6157bb;
$custom-light: #9486d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6157bb",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 187
  },
  "hsl": {
    "h": 246,
    "s": 42.373,
    "l": 53.725
  },
  "oklch": {
    "l": 0.51819,
    "c": 0.15198,
    "h": 284.3
  },
  "luminance": 0.12946
}

Semantic roles & 50–950 ramp

primary
#6157BB
secondary
#C8CCA2
accent
#D256C6
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #6157BB

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

Preview Lab → · Contrast checker → · Palette generator →

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