#6251CD#6251CD

#6251CD is a mid, vivid blue. Relative luminance 0.129; OKLCH L 52.2% C 0.184 H 284.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#6251CD
RGBrgb(98, 81, 205)
HSLhsl(248, 55%, 56%)
HSVhsv(248, 60%, 80%)
CMYKcmyk(52.2%, 60.5%, 0%, 19.6%)
CIE-LABlab(42.59, 39.77, -62.24)
CIE-LCHlch(42.59, 73.86, 302.58°)
OKLaboklab(52.17% 0.0453 -0.1784)
OKLCHoklch(52.17% 0.184 284.3)
XYZxyz(18.9956, 12.8883, 59.2325)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6251CD #BCCD51
analogous
#517ECD #6251CD #A051CD
triadic
#6251CD #CD6251 #51CD62
tetradic
#6251CD #CD517E #BCCD51 #51CDA0
square
#6251CD #CD517E #BCCD51 #51CDA0
split-complementary
#6251CD #CDA051 #7ECD51
monochromatic
#31257F #4332AF #6251CD #8D81DB #B8B0E8

Accessibility & contrast

On white

5.87
#6251CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#6251CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6251CD
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6251CD#FFFFFF#000000##FFFFFF
##6251CD1.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D1
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#376E87
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #6251cd;
/* rgb */ color: rgb(98, 81, 205);
/* oklch */ color: oklch(52.2% 0.184 284.3);
Tailwind
colors: {
  custom: {
    50: '#9782dd',
    500: '#6251cd',
    950: '#000000',
  },
}
SCSS
$custom: #6251cd;
$custom-light: #9782dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6251cd",
  "rgb": {
    "r": 98,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 248.226,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5217,
    "c": 0.18406,
    "h": 284.3
  },
  "luminance": 0.12889
}

Semantic roles & 50–950 ramp

primary
#6251CD
secondary
#CFD7A3
accent
#DF49CA
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #6251CD

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

Preview Lab → · Contrast checker → · Palette generator →

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