#6254F1#6254F1

#6254F1 is a mid, highly saturated blue. Relative luminance 0.153; OKLCH L 55.5% C 0.226 H 280.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#6254F1
RGBrgb(98, 84, 241)
HSLhsl(245, 85%, 64%)
HSVhsv(245, 65%, 95%)
CMYKcmyk(59.3%, 65.1%, 0%, 5.5%)
CIE-LABlab(46.02, 49.03, -77.13)
CIE-LCHlch(46.02, 91.40, 302.44°)
OKLaboklab(55.54% 0.0396 -0.2221)
OKLCHoklch(55.54% 0.226 280.1)
XYZxyz(24.0795, 15.2865, 84.8837)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6254F1 #E3F154
analogous
#5494F1 #6254F1 #B054F1
triadic
#6254F1 #F16254 #54F162
tetradic
#6254F1 #F15494 #E3F154 #54F1B0
square
#6254F1 #F15494 #E3F154 #54F1B0
split-complementary
#6254F1 #F1B054 #94F154
monochromatic
#1F0FBB #2E1BEC #6254F1 #968DF6 #CAC5FA

Accessibility & contrast

On white

5.18
#6254F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#6254F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6254F1
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6254F1#FFFFFF#000000##FFFFFF
##6254F11.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F6
Deuteranopia (green-blind)
#0067EE
Tritanopia (blue-blind)
#007C9B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #6254f1;
/* rgb */ color: rgb(98, 84, 241);
/* oklch */ color: oklch(55.5% 0.226 280.1);
Tailwind
colors: {
  custom: {
    50: '#9c85f7',
    500: '#6254f1',
    950: '#000000',
  },
}
SCSS
$custom: #6254f1;
$custom-light: #9c85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#6254f1",
  "rgb": {
    "r": 98,
    "g": 84,
    "b": 241
  },
  "hsl": {
    "h": 245.35,
    "s": 84.865,
    "l": 63.725
  },
  "oklch": {
    "l": 0.55535,
    "c": 0.22564,
    "h": 280.1
  },
  "luminance": 0.15288
}

Semantic roles & 50–950 ramp

primary
#6254F1
secondary
#E7ECB5
accent
#E104CE
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6254F1

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

Preview Lab → · Contrast checker → · Palette generator →

#6254F1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva