#6255DC#6255DC

#6255DC is a mid, vivid blue. Relative luminance 0.143; OKLCH L 54.0% C 0.198 H 281.8°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#6255DC
RGBrgb(98, 85, 220)
HSLhsl(246, 66%, 60%)
HSVhsv(246, 61%, 86%)
CMYKcmyk(55.5%, 61.4%, 0%, 13.7%)
CIE-LABlab(44.60, 42.01, -67.57)
CIE-LCHlch(44.60, 79.57, 301.87°)
OKLaboklab(53.99% 0.0406 -0.194)
OKLCHoklch(53.99% 0.198 281.8)
XYZxyz(21.1998, 14.2596, 69.3315)
Luminance0.1426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6255DC #CFDC55
analogous
#558BDC #6255DC #A655DC
triadic
#6255DC #DC6255 #55DC62
tetradic
#6255DC #DC558B #CFDC55 #55DCA6
square
#6255DC #DC558B #CFDC55 #55DCA6
split-complementary
#6255DC #DCA655 #8BDC55
monochromatic
#2B1F97 #392ACA #6255DC #9188E6 #C0BBF1

Accessibility & contrast

On white

5.45
#6255DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#6255DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6255DC
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6255DC#FFFFFF#000000##FFFFFF
##6255DC1.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EE0
Deuteranopia (green-blind)
#0065D9
Tritanopia (blue-blind)
#257690
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #6255dc;
/* rgb */ color: rgb(98, 85, 220);
/* oklch */ color: oklch(54.0% 0.198 281.8);
Tailwind
colors: {
  custom: {
    50: '#9985e8',
    500: '#6255dc',
    950: '#000000',
  },
}
SCSS
$custom: #6255dc;
$custom-light: #9985e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6255dc",
  "rgb": {
    "r": 98,
    "g": 85,
    "b": 220
  },
  "hsl": {
    "h": 245.778,
    "s": 65.854,
    "l": 59.804
  },
  "oklch": {
    "l": 0.53991,
    "c": 0.19825,
    "h": 281.8
  },
  "luminance": 0.14261
}

Semantic roles & 50–950 ramp

primary
#6255DC
secondary
#DBE0AC
accent
#E93FD8
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #6255DC

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

Preview Lab → · Contrast checker → · Palette generator →

#6255DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva