#6158BF#6158BF

#6158BF is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.3% C 0.156 H 283.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#6158BF
RGBrgb(97, 88, 191)
HSLhsl(245, 45%, 55%)
HSVhsv(245, 54%, 75%)
CMYKcmyk(49.2%, 53.9%, 0%, 25.1%)
CIE-LABlab(43.18, 31.07, -53.18)
CIE-LCHlch(43.18, 61.59, 300.29°)
OKLaboklab(52.28% 0.0365 -0.1517)
OKLCHoklch(52.28% 0.156 283.5)
XYZxyz(17.8206, 13.2815, 50.9047)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158BF #B6BF58
analogous
#5882BF #6158BF #9558BF
triadic
#6158BF #BF6158 #58BF61
tetradic
#6158BF #BF5882 #B6BF58 #58BF95
square
#6158BF #BF5882 #B6BF58 #58BF95
split-complementary
#6158BF #BF9558 #82BF58
monochromatic
#312B71 #453C9D #6158BF #8B84D0 #B5B0E1

Accessibility & contrast

On white

5.74
#6158BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#6158BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158BF
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158BF#FFFFFF#000000##FFFFFF
##6158BF1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2069C3
Deuteranopia (green-blind)
#1863BD
Tritanopia (blue-blind)
#3F6F83
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #6158bf;
/* rgb */ color: rgb(97, 88, 191);
/* oklch */ color: oklch(52.3% 0.156 283.5);
Tailwind
colors: {
  custom: {
    50: '#9487d3',
    500: '#6158bf',
    950: '#000000',
  },
}
SCSS
$custom: #6158bf;
$custom-light: #9487d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6158bf",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 191
  },
  "hsl": {
    "h": 245.243,
    "s": 44.589,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52278,
    "c": 0.15608,
    "h": 283.5
  },
  "luminance": 0.13282
}

Semantic roles & 50–950 ramp

primary
#6158BF
secondary
#CBCFA4
accent
#D454C9
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #6158BF

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

Preview Lab → · Contrast checker → · Palette generator →

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