#5340C2#5340C2

#5340C2 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 47.3% C 0.193 H 282.8°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5340C2
RGBrgb(83, 64, 194)
HSLhsl(249, 52%, 51%)
HSVhsv(249, 67%, 76%)
CMYKcmyk(57.2%, 67%, 0%, 23.9%)
CIE-LABlab(36.74, 43.67, -65.44)
CIE-LCHlch(36.74, 78.67, 303.72°)
OKLaboklab(47.33% 0.0428 -0.1883)
OKLCHoklch(47.33% 0.193 282.8)
XYZxyz(15.1353, 9.3999, 52.0453)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340C2 #AFC240
analogous
#406EC2 #5340C2 #9440C2
triadic
#5340C2 #C25340 #40C253
tetradic
#5340C2 #C2406E #AFC240 #40C294
square
#5340C2 #C2406E #AFC240 #40C294
split-complementary
#5340C2 #C29440 #6EC240
monochromatic
#2B2167 #3E3095 #5340C2 #7D6ED1 #A79DE0

Accessibility & contrast

On white

7.29
#5340C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5340C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340C2
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340C2#FFFFFF#000000##FFFFFF
##5340C21.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC6
Deuteranopia (green-blind)
#0052BF
Tritanopia (blue-blind)
#16617B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5340c2;
/* rgb */ color: rgb(83, 64, 194);
/* oklch */ color: oklch(47.3% 0.193 282.8);
Tailwind
colors: {
  custom: {
    50: '#8e76d5',
    500: '#5340c2',
    950: '#000000',
  },
}
SCSS
$custom: #5340c2;
$custom-light: #8e76d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5340c2",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 248.769,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47332,
    "c": 0.19308,
    "h": 282.8
  },
  "luminance": 0.09401
}

Semantic roles & 50–950 ramp

primary
#5340C2
secondary
#C3CC92
accent
#DB4DC6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5340C2

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

Preview Lab → · Contrast checker → · Palette generator →

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