#5256CA#5256CA

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

Color values

HEX#5256CA
RGBrgb(82, 86, 202)
HSLhsl(238, 53%, 56%)
HSVhsv(238, 59%, 79%)
CMYKcmyk(59.4%, 57.4%, 0%, 20.8%)
CIE-LABlab(42.33, 32.85, -61.00)
CIE-LCHlch(42.33, 69.28, 298.30°)
OKLaboklab(51.6% 0.0208 -0.1752)
OKLCHoklch(51.6% 0.176 276.8)
XYZxyz(17.4647, 12.7124, 57.3991)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5256CA #CAC652
analogous
#5292CA #5256CA #8A52CA
triadic
#5256CA #CA5256 #56CA52
tetradic
#5256CA #CA5292 #CAC652 #52CA8A
square
#5256CA #CA5292 #CAC652 #52CA8A
split-complementary
#5256CA #CA8A52 #92CA52
monochromatic
#26297C #3438AB #5256CA #8184D8 #B0B2E7

Accessibility & contrast

On white

5.93
#5256CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5256CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5256CA
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5256CA#FFFFFF#000000##FFFFFF
##5256CA1.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)
#0069CE
Deuteranopia (green-blind)
#005FC8
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5256ca;
/* rgb */ color: rgb(82, 86, 202);
/* oklch */ color: oklch(51.6% 0.176 276.8);
Tailwind
colors: {
  custom: {
    50: '#8e85db',
    500: '#5256ca',
    950: '#000000',
  },
}
SCSS
$custom: #5256ca;
$custom-light: #8e85db;
$custom-dark: #000000;
JSON
{
  "hex": "#5256ca",
  "rgb": {
    "r": 82,
    "g": 86,
    "b": 202
  },
  "hsl": {
    "h": 238,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51595,
    "c": 0.1764,
    "h": 276.8
  },
  "luminance": 0.12714
}

Semantic roles & 50–950 ramp

primary
#5256CA
secondary
#D5D3A3
accent
#D84BDD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5256CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5256CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva