#6251EF#6251EF

#6251EF is a mid, highly saturated blue. Relative luminance 0.147; OKLCH L 54.9% C 0.227 H 280.7°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#6251EF
RGBrgb(98, 81, 239)
HSLhsl(246, 83%, 63%)
HSVhsv(246, 66%, 94%)
CMYKcmyk(59%, 66.1%, 0%, 6.3%)
CIE-LABlab(45.24, 50.11, -77.30)
CIE-LCHlch(45.24, 92.12, 302.95°)
OKLaboklab(54.92% 0.0423 -0.2226)
OKLCHoklch(54.92% 0.227 280.7)
XYZxyz(23.5545, 14.7119, 83.2431)
Luminance0.1471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6251EF #DEEF51
analogous
#518FEF #6251EF #B151EF
triadic
#6251EF #EF6251 #51EF62
tetradic
#6251EF #EF518F #DEEF51 #51EFB1
square
#6251EF #EF518F #DEEF51 #51EFB1
split-complementary
#6251EF #EFB151 #8FEF51
monochromatic
#2211B5 #2F19EA #6251EF #9589F4 #C7C1F9

Accessibility & contrast

On white

5.33
#6251EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#6251EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6251EF
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6251EF#FFFFFF#000000##FFFFFF
##6251EF1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F4
Deuteranopia (green-blind)
#0065EC
Tritanopia (blue-blind)
#007A99
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #6251ef;
/* rgb */ color: rgb(98, 81, 239);
/* oklch */ color: oklch(54.9% 0.227 280.7);
Tailwind
colors: {
  custom: {
    50: '#9c83f5',
    500: '#6251ef',
    950: '#000000',
  },
}
SCSS
$custom: #6251ef;
$custom-light: #9c83f5;
$custom-dark: #000000;
JSON
{
  "hex": "#6251ef",
  "rgb": {
    "r": 98,
    "g": 81,
    "b": 239
  },
  "hsl": {
    "h": 246.456,
    "s": 83.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.54916,
    "c": 0.22659,
    "h": 280.7
  },
  "luminance": 0.14714
}

Semantic roles & 50–950 ramp

primary
#6251EF
secondary
#E4EAB1
accent
#E006C8
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6251EF

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

Preview Lab → · Contrast checker → · Palette generator →

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