#6158BC#6158BC

#6158BC is a mid, vivid blue. Relative luminance 0.132; OKLCH L 52.1% C 0.152 H 283.9°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#6158BC
RGBrgb(97, 88, 188)
HSLhsl(245, 43%, 54%)
HSVhsv(245, 53%, 74%)
CMYKcmyk(48.4%, 53.2%, 0%, 26.3%)
CIE-LABlab(42.99, 30.15, -51.75)
CIE-LCHlch(42.99, 59.89, 300.23°)
OKLaboklab(52.07% 0.0364 -0.1475)
OKLCHoklch(52.07% 0.152 283.9)
XYZxyz(17.4939, 13.1508, 49.1838)
Luminance0.1315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158BC #B3BC58
analogous
#5881BC #6158BC #9358BC
triadic
#6158BC #BC6158 #58BC61
tetradic
#6158BC #BC5881 #B3BC58 #58BC93
square
#6158BC #BC5881 #B3BC58 #58BC93
split-complementary
#6158BC #BC9358 #81BC58
monochromatic
#322C6E #463E99 #6158BC #8A84CE #B4AFDF

Accessibility & contrast

On white

5.78
#6158BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#6158BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158BC
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158BC#FFFFFF#000000##FFFFFF
##6158BC1.005.783.635.78
#FFFFFF5.781.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2469BF
Deuteranopia (green-blind)
#1E62BA
Tritanopia (blue-blind)
#416E81
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #6158bc;
/* rgb */ color: rgb(97, 88, 188);
/* oklch */ color: oklch(52.1% 0.152 283.9);
Tailwind
colors: {
  custom: {
    50: '#9487d1',
    500: '#6158bc',
    950: '#000000',
  },
}
SCSS
$custom: #6158bc;
$custom-light: #9487d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6158bc",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 245.4,
    "s": 42.735,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52071,
    "c": 0.15194,
    "h": 283.9
  },
  "luminance": 0.13152
}

Semantic roles & 50–950 ramp

primary
#6158BC
secondary
#C9CDA3
accent
#D355C7
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0E0B14
muted
#7E7C82

Preview Lab

Preview with #6158BC

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

Preview Lab → · Contrast checker → · Palette generator →

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