#5241C2#5241C2

#5241C2 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.4% C 0.192 H 282.2°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5241C2
RGBrgb(82, 65, 194)
HSLhsl(248, 51%, 51%)
HSVhsv(248, 66%, 76%)
CMYKcmyk(57.7%, 66.5%, 0%, 23.9%)
CIE-LABlab(36.87, 42.94, -65.23)
CIE-LCHlch(36.87, 78.10, 303.35°)
OKLaboklab(47.4% 0.0406 -0.1877)
OKLCHoklch(47.4% 0.192 282.2)
XYZxyz(15.1046, 9.4685, 52.0601)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241C2 #B1C241
analogous
#4170C2 #5241C2 #9241C2
triadic
#5241C2 #C25241 #41C252
tetradic
#5241C2 #C24170 #B1C241 #41C292
square
#5241C2 #C24170 #B1C241 #41C292
split-complementary
#5241C2 #C29241 #70C241
monochromatic
#2A2167 #3D3096 #5241C2 #7C6FD1 #A69EE0

Accessibility & contrast

On white

7.26
#5241C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5241C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5241C2
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241C2#FFFFFF#000000##FFFFFF
##5241C21.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0052BF
Tritanopia (blue-blind)
#11627C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5241c2;
/* rgb */ color: rgb(82, 65, 194);
/* oklch */ color: oklch(47.4% 0.192 282.2);
Tailwind
colors: {
  custom: {
    50: '#8e77d5',
    500: '#5241c2',
    950: '#000000',
  },
}
SCSS
$custom: #5241c2;
$custom-light: #8e77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5241c2",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 247.907,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47404,
    "c": 0.19204,
    "h": 282.2
  },
  "luminance": 0.09469
}

Semantic roles & 50–950 ramp

primary
#5241C2
secondary
#C4CC93
accent
#DB4DC8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5241C2

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

Preview Lab → · Contrast checker → · Palette generator →

#5241C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva