#6158EB#6158EB

#6158EB is a mid, highly saturated blue. Relative luminance 0.155; OKLCH L 55.6% C 0.214 H 279.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#6158EB
RGBrgb(97, 88, 235)
HSLhsl(244, 79%, 63%)
HSVhsv(244, 63%, 92%)
CMYKcmyk(58.7%, 62.6%, 0%, 7.8%)
CIE-LABlab(46.33, 44.73, -73.25)
CIE-LCHlch(46.33, 85.83, 301.41°)
OKLaboklab(55.6% 0.0356 -0.2108)
OKLCHoklch(55.6% 0.214 279.6)
XYZxyz(23.4101, 15.5173, 80.3427)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158EB #E2EB58
analogous
#5899EB #6158EB #AA58EB
triadic
#6158EB #EB6158 #58EB61
tetradic
#6158EB #EB5899 #E2EB58 #58EBAA
square
#6158EB #EB5899 #E2EB58 #58EBAA
split-complementary
#6158EB #EBAA58 #99EB58
monochromatic
#1F15B3 #2D21E4 #6158EB #958FF2 #C8C5F8

Accessibility & contrast

On white

5.12
#6158EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#6158EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158EB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158EB#FFFFFF#000000##FFFFFF
##6158EB1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#0068E8
Tritanopia (blue-blind)
#007D99
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #6158eb;
/* rgb */ color: rgb(97, 88, 235);
/* oklch */ color: oklch(55.6% 0.214 279.6);
Tailwind
colors: {
  custom: {
    50: '#9b88f2',
    500: '#6158eb',
    950: '#000000',
  },
}
SCSS
$custom: #6158eb;
$custom-light: #9b88f2;
$custom-dark: #000000;
JSON
{
  "hex": "#6158eb",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 235
  },
  "hsl": {
    "h": 243.673,
    "s": 78.61,
    "l": 63.333
  },
  "oklch": {
    "l": 0.55595,
    "c": 0.21375,
    "h": 279.6
  },
  "luminance": 0.15519
}

Semantic roles & 50–950 ramp

primary
#6158EB
secondary
#E6EAB5
accent
#DB0BCE
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6158EB

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

Preview Lab → · Contrast checker → · Palette generator →

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