#6254BF#6254BF

#6254BF is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.6% C 0.162 H 285.2°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#6254BF
RGBrgb(98, 84, 191)
HSLhsl(248, 46%, 54%)
HSVhsv(248, 56%, 75%)
CMYKcmyk(48.7%, 56%, 0%, 25.1%)
CIE-LABlab(42.30, 33.72, -54.60)
CIE-LCHlch(42.30, 64.17, 301.70°)
OKLaboklab(51.65% 0.0424 -0.1559)
OKLCHoklch(51.65% 0.162 285.2)
XYZxyz(17.6085, 12.6981, 50.8033)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6254BF #B1BF54
analogous
#547CBF #6254BF #9854BF
triadic
#6254BF #BF6254 #54BF62
tetradic
#6254BF #BF547C #B1BF54 #54BF98
square
#6254BF #BF547C #B1BF54 #54BF98
split-complementary
#6254BF #BF9854 #7CBF54
monochromatic
#332A6F #473A9C #6254BF #8B81D0 #B4ADE0

Accessibility & contrast

On white

5.93
#6254BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#6254BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6254BF
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6254BF#FFFFFF#000000##FFFFFF
##6254BF1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1067C3
Deuteranopia (green-blind)
#0861BD
Tritanopia (blue-blind)
#416C81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #6254bf;
/* rgb */ color: rgb(98, 84, 191);
/* oklch */ color: oklch(51.6% 0.162 285.2);
Tailwind
colors: {
  custom: {
    50: '#9584d3',
    500: '#6254bf',
    950: '#000000',
  },
}
SCSS
$custom: #6254bf;
$custom-light: #9584d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6254bf",
  "rgb": {
    "r": 98,
    "g": 84,
    "b": 191
  },
  "hsl": {
    "h": 247.85,
    "s": 45.532,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51645,
    "c": 0.16154,
    "h": 285.2
  },
  "luminance": 0.12699
}

Semantic roles & 50–950 ramp

primary
#6254BF
secondary
#C8CEA1
accent
#D553C4
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0E0B14
muted
#7E7C83

Preview Lab

Preview with #6254BF

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

Preview Lab → · Contrast checker → · Palette generator →

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