#6157EB#6157EB

#6157EB is a mid, highly saturated blue. Relative luminance 0.154; OKLCH L 55.4% C 0.215 H 279.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#6157EB
RGBrgb(97, 87, 235)
HSLhsl(244, 79%, 63%)
HSVhsv(244, 63%, 92%)
CMYKcmyk(58.7%, 63%, 0%, 7.8%)
CIE-LABlab(46.12, 45.31, -73.61)
CIE-LCHlch(46.12, 86.44, 301.62°)
OKLaboklab(55.44% 0.0365 -0.2118)
OKLCHoklch(55.44% 0.215 279.8)
XYZxyz(23.3286, 15.3543, 80.3155)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6157EB #E1EB57
analogous
#5797EB #6157EB #AB57EB
triadic
#6157EB #EB6157 #57EB61
tetradic
#6157EB #EB5797 #E1EB57 #57EBAB
square
#6157EB #EB5797 #E1EB57 #57EBAB
split-complementary
#6157EB #EBAB57 #97EB57
monochromatic
#2015B2 #2E20E4 #6157EB #948EF2 #C8C4F8

Accessibility & contrast

On white

5.16
#6157EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#6157EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6157EB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6157EB#FFFFFF#000000##FFFFFF
##6157EB1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#0067E8
Tritanopia (blue-blind)
#007C99
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6157eb;
/* rgb */ color: rgb(97, 87, 235);
/* oklch */ color: oklch(55.4% 0.215 279.8);
Tailwind
colors: {
  custom: {
    50: '#9b87f2',
    500: '#6157eb',
    950: '#000000',
  },
}
SCSS
$custom: #6157eb;
$custom-light: #9b87f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6157eb",
  "rgb": {
    "r": 97,
    "g": 87,
    "b": 235
  },
  "hsl": {
    "h": 244.054,
    "s": 78.723,
    "l": 63.137
  },
  "oklch": {
    "l": 0.55435,
    "c": 0.21493,
    "h": 279.8
  },
  "luminance": 0.15356
}

Semantic roles & 50–950 ramp

primary
#6157EB
secondary
#E6E9B4
accent
#DB0ACD
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6157EB

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

Preview Lab → · Contrast checker → · Palette generator →

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