#6251E8#6251E8

#6251E8 is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.3% C 0.218 H 281.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#6251E8
RGBrgb(98, 81, 232)
HSLhsl(247, 77%, 61%)
HSVhsv(247, 65%, 91%)
CMYKcmyk(57.8%, 65.1%, 0%, 9%)
CIE-LABlab(44.67, 47.98, -74.28)
CIE-LCHlch(44.67, 88.43, 302.86°)
OKLaboklab(54.33% 0.0431 -0.2137)
OKLCHoklch(54.33% 0.218 281.4)
XYZxyz(22.5404, 14.3062, 77.9019)
Luminance0.1431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6251E8 #D7E851
analogous
#518CE8 #6251E8 #AE51E8
triadic
#6251E8 #E86251 #51E862
tetradic
#6251E8 #E8518C #D7E851 #51E8AE
square
#6251E8 #E8518C #D7E851 #51E8AE
split-complementary
#6251E8 #E8AE51 #8CE851
monochromatic
#2716A8 #331DDE #6251E8 #9387EF #C4BDF6

Accessibility & contrast

On white

5.44
#6251E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#6251E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6251E8
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6251E8#FFFFFF#000000##FFFFFF
##6251E81.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FED
Deuteranopia (green-blind)
#0064E5
Tritanopia (blue-blind)
#097795
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #6251e8;
/* rgb */ color: rgb(98, 81, 232);
/* oklch */ color: oklch(54.3% 0.218 281.4);
Tailwind
colors: {
  custom: {
    50: '#9b83f0',
    500: '#6251e8',
    950: '#000000',
  },
}
SCSS
$custom: #6251e8;
$custom-light: #9b83f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6251e8",
  "rgb": {
    "r": 98,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 246.755,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.54329,
    "c": 0.21805,
    "h": 281.4
  },
  "luminance": 0.14308
}

Semantic roles & 50–950 ramp

primary
#6251E8
secondary
#E0E7AE
accent
#D90DC2
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #6251E8

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

Preview Lab → · Contrast checker → · Palette generator →

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