#6158EF#6158EF

#6158EF is a mid, highly saturated blue. Relative luminance 0.158; OKLCH L 55.9% C 0.219 H 279.3°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#6158EF
RGBrgb(97, 88, 239)
HSLhsl(244, 83%, 64%)
HSVhsv(244, 63%, 94%)
CMYKcmyk(59.4%, 63.2%, 0%, 6.3%)
CIE-LABlab(46.65, 45.98, -75.00)
CIE-LCHlch(46.65, 87.97, 301.51°)
OKLaboklab(55.92% 0.0353 -0.2159)
OKLCHoklch(55.92% 0.219 279.3)
XYZxyz(23.9945, 15.7511, 83.4205)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6158EF #E6EF58
analogous
#589BEF #6158EF #AD58EF
triadic
#6158EF #EF6158 #58EF61
tetradic
#6158EF #EF589B #E6EF58 #58EFAD
square
#6158EF #EF589B #E6EF58 #58EFAD
split-complementary
#6158EF #EFAD58 #9BEF58
monochromatic
#1C12BB #2C20EA #6158EF #9690F4 #CBC8FA

Accessibility & contrast

On white

5.06
#6158EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#6158EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6158EF
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6158EF#FFFFFF#000000##FFFFFF
##6158EF1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F4
Deuteranopia (green-blind)
#0069EC
Tritanopia (blue-blind)
#007E9C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #6158ef;
/* rgb */ color: rgb(97, 88, 239);
/* oklch */ color: oklch(55.9% 0.219 279.3);
Tailwind
colors: {
  custom: {
    50: '#9b88f5',
    500: '#6158ef',
    950: '#000000',
  },
}
SCSS
$custom: #6158ef;
$custom-light: #9b88f5;
$custom-dark: #000000;
JSON
{
  "hex": "#6158ef",
  "rgb": {
    "r": 97,
    "g": 88,
    "b": 239
  },
  "hsl": {
    "h": 243.576,
    "s": 82.514,
    "l": 64.118
  },
  "oklch": {
    "l": 0.55919,
    "c": 0.21874,
    "h": 279.3
  },
  "luminance": 0.15753
}

Semantic roles & 50–950 ramp

primary
#6158EF
secondary
#E9ECB7
accent
#DF07D2
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6158EF

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

Preview Lab → · Contrast checker → · Palette generator →

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