#6157CF#6157CF

#6157CF is a mid, vivid blue. Relative luminance 0.139; OKLCH L 53.3% C 0.179 H 282.2°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#6157CF
RGBrgb(97, 87, 207)
HSLhsl(245, 56%, 58%)
HSVhsv(245, 58%, 81%)
CMYKcmyk(53.1%, 58%, 0%, 18.8%)
CIE-LABlab(44.03, 36.62, -61.06)
CIE-LCHlch(44.03, 71.20, 300.95°)
OKLaboklab(53.25% 0.0379 -0.1749)
OKLCHoklch(53.25% 0.179 282.2)
XYZxyz(19.5970, 13.8616, 60.6623)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157CF #C5CF57
analogous
#5789CF #6157CF #9D57CF
triadic
#6157CF #CF6157 #57CF61
tetradic
#6157CF #CF5789 #C5CF57 #57CF9D
square
#6157CF #CF5789 #C5CF57 #57CF9D
split-complementary
#6157CF #CF9D57 #89CF57
monochromatic
#2E2685 #3F34B5 #6157CF #8E87DD #BBB6EA

Accessibility & contrast

On white

5.57
#6157CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#6157CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157CF
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157CF#FFFFFF#000000##FFFFFF
##6157CF1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#0064CD
Tritanopia (blue-blind)
#31738A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #6157cf;
/* rgb */ color: rgb(97, 87, 207);
/* oklch */ color: oklch(53.3% 0.179 282.2);
Tailwind
colors: {
  custom: {
    50: '#9787de',
    500: '#6157cf',
    950: '#000000',
  },
}
SCSS
$custom: #6157cf;
$custom-light: #9787de;
$custom-dark: #000000;
JSON
{
  "hex": "#6157cf",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 207
  },
  "hsl": {
    "h": 245,
    "s": 55.556,
    "l": 57.647
  },
  "oklch": {
    "l": 0.53254,
    "c": 0.17897,
    "h": 282.2
  },
  "luminance": 0.13863
}

Semantic roles & 50–950 ramp

primary
#6157CF
secondary
#D5D9A9
accent
#DF49D2
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6157CF

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

Preview Lab → · Contrast checker → · Palette generator →

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