#6251CB#6251CB

#6251CB is a mid, vivid blue. Relative luminance 0.128; OKLCH L 52.0% C 0.181 H 284.5°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#6251CB
RGBrgb(98, 81, 203)
HSLhsl(248, 54%, 56%)
HSVhsv(248, 60%, 80%)
CMYKcmyk(51.7%, 60.1%, 0%, 20.4%)
CIE-LABlab(42.45, 39.16, -61.32)
CIE-LCHlch(42.45, 72.76, 302.56°)
OKLaboklab(52.02% 0.0454 -0.1757)
OKLCHoklch(52.02% 0.181 284.5)
XYZxyz(18.7557, 12.7923, 57.9692)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6251CB #BACB51
analogous
#517DCB #6251CB #9F51CB
triadic
#6251CB #CB6251 #51CB62
tetradic
#6251CB #CB517D #BACB51 #51CB9F
square
#6251CB #CB517D #BACB51 #51CB9F
split-complementary
#6251CB #CB9F51 #7DCB51
monochromatic
#31257C #4433AC #6251CB #8D80D9 #B7AFE7

Accessibility & contrast

On white

5.90
#6251CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#6251CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6251CB
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6251CB#FFFFFF#000000##FFFFFF
##6251CB1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#0060C8
Tritanopia (blue-blind)
#396E86
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6251cb;
/* rgb */ color: rgb(98, 81, 203);
/* oklch */ color: oklch(52.0% 0.181 284.5);
Tailwind
colors: {
  custom: {
    50: '#9782dc',
    500: '#6251cb',
    950: '#000000',
  },
}
SCSS
$custom: #6251cb;
$custom-light: #9782dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6251cb",
  "rgb": {
    "r": 98,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 248.361,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.52018,
    "c": 0.18147,
    "h": 284.5
  },
  "luminance": 0.12793
}

Semantic roles & 50–950 ramp

primary
#6251CB
secondary
#CED5A3
accent
#DD4AC9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #6251CB

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

Preview Lab → · Contrast checker → · Palette generator →

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