#6054EB#6054EB

#6054EB is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.9% C 0.219 H 279.9°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#6054EB
RGBrgb(96, 84, 235)
HSLhsl(245, 79%, 63%)
HSVhsv(245, 64%, 92%)
CMYKcmyk(59.1%, 64.3%, 0%, 7.8%)
CIE-LABlab(45.39, 46.89, -74.80)
CIE-LCHlch(45.39, 88.28, 302.08°)
OKLaboklab(54.89% 0.0378 -0.2153)
OKLCHoklch(54.89% 0.219 279.9)
XYZxyz(22.9848, 14.8240, 80.2313)
Luminance0.1483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6054EB #DFEB54
analogous
#5494EB #6054EB #AB54EB
triadic
#6054EB #EB6054 #54EB60
tetradic
#6054EB #EB5494 #DFEB54 #54EBAB
square
#6054EB #EB5494 #DFEB54 #54EBAB
split-complementary
#6054EB #EBAB54 #94EB54
monochromatic
#2115B0 #2D1DE5 #6054EB #938BF1 #C6C2F8

Accessibility & contrast

On white

5.30
#6054EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#6054EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6054EB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6054EB#FFFFFF#000000##FFFFFF
##6054EB1.005.303.975.30
#FFFFFF5.301.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0066E8
Tritanopia (blue-blind)
#007A98
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #6054eb;
/* rgb */ color: rgb(96, 84, 235);
/* oklch */ color: oklch(54.9% 0.219 279.9);
Tailwind
colors: {
  custom: {
    50: '#9a85f3',
    500: '#6054eb',
    950: '#000000',
  },
}
SCSS
$custom: #6054eb;
$custom-light: #9a85f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6054eb",
  "rgb": {
    "r": 96,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 244.768,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.5489,
    "c": 0.21862,
    "h": 279.9
  },
  "luminance": 0.14826
}

Semantic roles & 50–950 ramp

primary
#6054EB
secondary
#E4E9B2
accent
#DB0ACB
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6054EB

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

Preview Lab → · Contrast checker → · Palette generator →

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