#5341C2#5341C2

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

Color values

HEX#5341C2
RGBrgb(83, 65, 194)
HSLhsl(248, 51%, 51%)
HSVhsv(248, 66%, 76%)
CMYKcmyk(57.2%, 66.5%, 0%, 23.9%)
CIE-LABlab(36.96, 43.10, -65.09)
CIE-LCHlch(36.96, 78.07, 303.51°)
OKLaboklab(47.49% 0.0419 -0.1873)
OKLCHoklch(47.49% 0.192 282.6)
XYZxyz(15.1922, 9.5137, 52.0643)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5341C2 #B0C241
analogous
#416FC2 #5341C2 #9341C2
triadic
#5341C2 #C25341 #41C253
tetradic
#5341C2 #C2416F #B0C241 #41C293
square
#5341C2 #C2416F #B0C241 #41C293
split-complementary
#5341C2 #C29341 #6FC241
monochromatic
#2B2167 #3E3096 #5341C2 #7D6FD1 #A79EE0

Accessibility & contrast

On white

7.23
#5341C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5341C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5341C2
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5341C2#FFFFFF#000000##FFFFFF
##5341C21.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5341c2;
/* rgb */ color: rgb(83, 65, 194);
/* oklch */ color: oklch(47.5% 0.192 282.6);
Tailwind
colors: {
  custom: {
    50: '#8e77d5',
    500: '#5341c2',
    950: '#000000',
  },
}
SCSS
$custom: #5341c2;
$custom-light: #8e77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5341c2",
  "rgb": {
    "r": 83,
    "g": 65,
    "b": 194
  },
  "hsl": {
    "h": 248.372,
    "s": 51.394,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47485,
    "c": 0.19189,
    "h": 282.6
  },
  "luminance": 0.09515
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5341C2

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

Preview Lab → · Contrast checker → · Palette generator →

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