#6256CC#6256CC

#6256CC is a mid, vivid blue. Relative luminance 0.136; OKLCH L 52.9% C 0.176 H 283.2°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#6256CC
RGBrgb(98, 86, 204)
HSLhsl(246, 54%, 57%)
HSVhsv(246, 58%, 80%)
CMYKcmyk(52%, 57.8%, 0%, 20%)
CIE-LABlab(43.67, 36.49, -59.92)
CIE-LCHlch(43.67, 70.16, 301.34°)
OKLaboklab(52.94% 0.0402 -0.1715)
OKLCHoklch(52.94% 0.176 283.2)
XYZxyz(19.2606, 13.6108, 58.7273)
Luminance0.1361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6256CC #C0CC56
analogous
#5685CC #6256CC #9D56CC
triadic
#6256CC #CC6256 #56CC62
tetradic
#6256CC #CC5685 #C0CC56 #56CC9D
square
#6256CC #CC5685 #C0CC56 #56CC9D
split-complementary
#6256CC #CC9D56 #85CC56
monochromatic
#302781 #4235B0 #6256CC #8E85DA #B9B4E8

Accessibility & contrast

On white

5.64
#6256CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#6256CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6256CC
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6256CC#FFFFFF#000000##FFFFFF
##6256CC1.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#377189
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #6256cc;
/* rgb */ color: rgb(98, 86, 204);
/* oklch */ color: oklch(52.9% 0.176 283.2);
Tailwind
colors: {
  custom: {
    50: '#9786dc',
    500: '#6256cc',
    950: '#000000',
  },
}
SCSS
$custom: #6256cc;
$custom-light: #9786dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6256cc",
  "rgb": {
    "r": 98,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 246.102,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52939,
    "c": 0.17618,
    "h": 283.2
  },
  "luminance": 0.13612
}

Semantic roles & 50–950 ramp

primary
#6256CC
secondary
#D2D7A7
accent
#DD4BCE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #6256CC

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

Preview Lab → · Contrast checker → · Palette generator →

#6256CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva