#5241C8#5241C8

#5241C8 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.9% C 0.200 H 281.5°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#5241C8
RGBrgb(82, 65, 200)
HSLhsl(248, 55%, 52%)
HSVhsv(248, 68%, 78%)
CMYKcmyk(59%, 67.5%, 0%, 21.6%)
CIE-LABlab(37.38, 44.80, -67.90)
CIE-LCHlch(37.38, 81.35, 303.41°)
OKLaboklab(47.93% 0.0398 -0.1955)
OKLCHoklch(47.93% 0.2 281.5)
XYZxyz(15.7920, 9.7435, 55.6809)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5241C8 #B7C841
analogous
#4173C8 #5241C8 #9641C8
triadic
#5241C8 #C85241 #41C852
tetradic
#5241C8 #C84173 #B7C841 #41C896
square
#5241C8 #C84173 #B7C841 #41C896
split-complementary
#5241C8 #C89641 #73C841
monochromatic
#2A206F #3C2E9E #5241C8 #7D70D6 #A8A0E3

Accessibility & contrast

On white

7.12
#5241C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5241C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5241C8
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5241C8#FFFFFF#000000##FFFFFF
##5241C81.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5241c8;
/* rgb */ color: rgb(82, 65, 200);
/* oklch */ color: oklch(47.9% 0.200 281.5);
Tailwind
colors: {
  custom: {
    50: '#8f77da',
    500: '#5241c8',
    950: '#000000',
  },
}
SCSS
$custom: #5241c8;
$custom-light: #8f77da;
$custom-dark: #000000;
JSON
{
  "hex": "#5241c8",
  "rgb": {
    "r": 82,
    "g": 65,
    "b": 200
  },
  "hsl": {
    "h": 247.556,
    "s": 55.102,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47926,
    "c": 0.19954,
    "h": 281.5
  },
  "luminance": 0.09745
}

Semantic roles & 50–950 ramp

primary
#5241C8
secondary
#C9D095
accent
#DE49CC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5241C8

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

Preview Lab → · Contrast checker → · Palette generator →

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