#5254CB#5254CB

#5254CB is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.3% C 0.180 H 277.2°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#5254CB
RGBrgb(82, 84, 203)
HSLhsl(239, 54%, 56%)
HSVhsv(239, 60%, 80%)
CMYKcmyk(59.6%, 58.6%, 0%, 20.4%)
CIE-LABlab(41.91, 34.41, -62.25)
CIE-LCHlch(41.91, 71.13, 298.94°)
OKLaboklab(51.31% 0.0227 -0.1788)
OKLCHoklch(51.31% 0.18 277.2)
XYZxyz(17.4260, 12.4450, 57.9722)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5254CB #CBC952
analogous
#5290CB #5254CB #8C52CB
triadic
#5254CB #CB5254 #54CB52
tetradic
#5254CB #CB5290 #CBC952 #52CB8C
square
#5254CB #CB5290 #CBC952 #52CB8C
split-complementary
#5254CB #CB8C52 #90CB52
monochromatic
#26277D #3436AC #5254CB #8183D9 #B0B1E7

Accessibility & contrast

On white

6.02
#5254CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#5254CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5254CB
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5254CB#FFFFFF#000000##FFFFFF
##5254CB1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#007187
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5254cb;
/* rgb */ color: rgb(82, 84, 203);
/* oklch */ color: oklch(51.3% 0.180 277.2);
Tailwind
colors: {
  custom: {
    50: '#8e84dc',
    500: '#5254cb',
    950: '#000000',
  },
}
SCSS
$custom: #5254cb;
$custom-light: #8e84dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5254cb",
  "rgb": {
    "r": 82,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 239.008,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51313,
    "c": 0.18028,
    "h": 277.2
  },
  "luminance": 0.12446
}

Semantic roles & 50–950 ramp

primary
#5254CB
secondary
#D5D5A3
accent
#DB4BDD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5254CB

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

Preview Lab → · Contrast checker → · Palette generator →

#5254CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva