#5342CA#5342CA

#5342CA is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.3% C 0.201 H 281.5°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#5342CA
RGBrgb(83, 66, 202)
HSLhsl(248, 56%, 53%)
HSVhsv(248, 67%, 79%)
CMYKcmyk(58.9%, 67.3%, 0%, 20.8%)
CIE-LABlab(37.84, 45.00, -68.31)
CIE-LCHlch(37.84, 81.80, 303.38°)
OKLaboklab(48.33% 0.04 -0.1967)
OKLCHoklch(48.33% 0.201 281.5)
XYZxyz(16.1728, 9.9986, 56.9434)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5342CA #B9CA42
analogous
#4275CA #5342CA #9742CA
triadic
#5342CA #CA5342 #42CA53
tetradic
#5342CA #CA4275 #B9CA42 #42CA97
square
#5342CA #CA4275 #B9CA42 #42CA97
split-complementary
#5342CA #CA9742 #75CA42
monochromatic
#2A2072 #3C2DA2 #5342CA #7E72D7 #AAA2E5

Accessibility & contrast

On white

7.00
#5342CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5342CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5342CA
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5342CA#FFFFFF#000000##FFFFFF
##5342CA1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECE
Deuteranopia (green-blind)
#0054C7
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5342ca;
/* rgb */ color: rgb(83, 66, 202);
/* oklch */ color: oklch(48.3% 0.201 281.5);
Tailwind
colors: {
  custom: {
    50: '#9078db',
    500: '#5342ca',
    950: '#000000',
  },
}
SCSS
$custom: #5342ca;
$custom-light: #9078db;
$custom-dark: #000000;
JSON
{
  "hex": "#5342ca",
  "rgb": {
    "r": 83,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 247.5,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48331,
    "c": 0.20071,
    "h": 281.5
  },
  "luminance": 0.1
}

Semantic roles & 50–950 ramp

primary
#5342CA
secondary
#CAD196
accent
#DF48CD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5342CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5342CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva