#6251EB#6251EB

#6251EB is a mid, highly saturated blue. Relative luminance 0.145; OKLCH L 54.6% C 0.222 H 281.1°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#6251EB
RGBrgb(98, 81, 235)
HSLhsl(247, 79%, 62%)
HSVhsv(247, 66%, 92%)
CMYKcmyk(58.3%, 65.5%, 0%, 7.8%)
CIE-LABlab(44.91, 48.90, -75.58)
CIE-LCHlch(44.91, 90.01, 302.90°)
OKLaboklab(54.58% 0.0428 -0.2176)
OKLCHoklch(54.58% 0.222 281.1)
XYZxyz(22.9701, 14.4781, 80.1653)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6251EB #DAEB51
analogous
#518DEB #6251EB #AF51EB
triadic
#6251EB #EB6251 #51EB62
tetradic
#6251EB #EB518D #DAEB51 #51EBAF
square
#6251EB #EB518D #DAEB51 #51EBAF
split-complementary
#6251EB #EBAF51 #8DEB51
monochromatic
#2514AE #311AE5 #6251EB #9488F1 #C5BFF8

Accessibility & contrast

On white

5.39
#6251EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#6251EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6251EB
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6251EB#FFFFFF#000000##FFFFFF
##6251EB1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F0
Deuteranopia (green-blind)
#0065E8
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #6251eb;
/* rgb */ color: rgb(98, 81, 235);
/* oklch */ color: oklch(54.6% 0.222 281.1);
Tailwind
colors: {
  custom: {
    50: '#9c83f3',
    500: '#6251eb',
    950: '#000000',
  },
}
SCSS
$custom: #6251eb;
$custom-light: #9c83f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6251eb",
  "rgb": {
    "r": 98,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 246.623,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54579,
    "c": 0.22172,
    "h": 281.1
  },
  "luminance": 0.1448
}

Semantic roles & 50–950 ramp

primary
#6251EB
secondary
#E2E8B0
accent
#DC0AC5
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6251EB

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

Preview Lab → · Contrast checker → · Palette generator →

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