#6255EF#6255EF

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

Color values

HEX#6255EF
RGBrgb(98, 85, 239)
HSLhsl(245, 83%, 64%)
HSVhsv(245, 64%, 94%)
CMYKcmyk(59%, 64.4%, 0%, 6.3%)
CIE-LABlab(46.07, 47.85, -75.93)
CIE-LCHlch(46.07, 89.75, 302.22°)
OKLaboklab(55.52% 0.039 -0.2186)
OKLCHoklch(55.52% 0.222 280.1)
XYZxyz(23.8606, 15.3240, 83.3451)
Luminance0.1533 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6255EF #E2EF55
analogous
#5595EF #6255EF #AF55EF
triadic
#6255EF #EF6255 #55EF62
tetradic
#6255EF #EF5595 #E2EF55 #55EFAF
square
#6255EF #EF5595 #E2EF55 #55EFAF
split-complementary
#6255EF #EFAF55 #95EF55
monochromatic
#1F11B8 #2E1DEA #6255EF #968DF4 #C9C5FA

Accessibility & contrast

On white

5.17
#6255EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#6255EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6255EF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6255EF#FFFFFF#000000##FFFFFF
##6255EF1.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6255ef;
/* rgb */ color: rgb(98, 85, 239);
/* oklch */ color: oklch(55.5% 0.222 280.1);
Tailwind
colors: {
  custom: {
    50: '#9c86f5',
    500: '#6255ef',
    950: '#000000',
  },
}
SCSS
$custom: #6255ef;
$custom-light: #9c86f5;
$custom-dark: #000000;
JSON
{
  "hex": "#6255ef",
  "rgb": {
    "r": 98,
    "g": 85,
    "b": 239
  },
  "hsl": {
    "h": 245.065,
    "s": 82.796,
    "l": 63.529
  },
  "oklch": {
    "l": 0.55522,
    "c": 0.22203,
    "h": 280.1
  },
  "luminance": 0.15326
}

Semantic roles & 50–950 ramp

primary
#6255EF
secondary
#E7EBB5
accent
#DF06CD
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6255EF

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

Preview Lab → · Contrast checker → · Palette generator →

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