#6158E8#6158E8

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

Color values

HEX#6158E8
RGBrgb(97, 88, 232)
HSLhsl(244, 76%, 63%)
HSVhsv(244, 62%, 91%)
CMYKcmyk(58.2%, 62.1%, 0%, 9%)
CIE-LABlab(46.10, 43.80, -71.94)
CIE-LCHlch(46.10, 84.22, 301.34°)
OKLaboklab(55.35% 0.0358 -0.2069)
OKLCHoklch(55.35% 0.21 279.8)
XYZxyz(22.9804, 15.3454, 78.0793)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158E8 #DFE858
analogous
#5897E8 #6158E8 #A958E8
triadic
#6158E8 #E86158 #58E861
tetradic
#6158E8 #E85897 #DFE858 #58E8A9
square
#6158E8 #E85897 #DFE858 #58E8A9
split-complementary
#6158E8 #E8A958 #97E858
monochromatic
#2118AE #2E22E1 #6158E8 #948EEF #C7C4F7

Accessibility & contrast

On white

5.16
#6158E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#6158E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158E8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158E8#FFFFFF#000000##FFFFFF
##6158E81.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)
#0073ED
Deuteranopia (green-blind)
#0068E5
Tritanopia (blue-blind)
#007C98
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6158e8;
/* rgb */ color: rgb(97, 88, 232);
/* oklch */ color: oklch(55.4% 0.210 279.8);
Tailwind
colors: {
  custom: {
    50: '#9a88f0',
    500: '#6158e8',
    950: '#000000',
  },
}
SCSS
$custom: #6158e8;
$custom-light: #9a88f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6158e8",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 232
  },
  "hsl": {
    "h": 243.75,
    "s": 75.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.55354,
    "c": 0.20998,
    "h": 279.8
  },
  "luminance": 0.15347
}

Semantic roles & 50–950 ramp

primary
#6158E8
secondary
#E5E8B4
accent
#D80ECB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6158E8

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

Preview Lab → · Contrast checker → · Palette generator →

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