#5340CE#5340CE

#5340CE is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.4% C 0.208 H 281.4°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#5340CE
RGBrgb(83, 64, 206)
HSLhsl(248, 59%, 53%)
HSVhsv(248, 69%, 81%)
CMYKcmyk(59.7%, 68.9%, 0%, 19.2%)
CIE-LABlab(37.77, 47.36, -70.74)
CIE-LCHlch(37.77, 85.13, 303.80°)
OKLaboklab(48.39% 0.041 -0.2038)
OKLCHoklch(48.39% 0.208 281.4)
XYZxyz(16.5378, 9.9609, 59.4317)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340CE #BBCE40
analogous
#4074CE #5340CE #9A40CE
triadic
#5340CE #CE5340 #40CE53
tetradic
#5340CE #CE4074 #BBCE40 #40CE9A
square
#5340CE #CE4074 #BBCE40 #40CE9A
split-complementary
#5340CE #CE9A40 #74CE40
monochromatic
#2A1E75 #3B2BA6 #5340CE #7F71DA #ABA1E7

Accessibility & contrast

On white

7.02
#5340CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5340CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340CE
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340CE#FFFFFF#000000##FFFFFF
##5340CE1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED2
Deuteranopia (green-blind)
#0054CB
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5340ce;
/* rgb */ color: rgb(83, 64, 206);
/* oklch */ color: oklch(48.4% 0.208 281.4);
Tailwind
colors: {
  custom: {
    50: '#9077de',
    500: '#5340ce',
    950: '#000000',
  },
}
SCSS
$custom: #5340ce;
$custom-light: #9077de;
$custom-dark: #000000;
JSON
{
  "hex": "#5340ce",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 248.028,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48389,
    "c": 0.20789,
    "h": 281.4
  },
  "luminance": 0.09962
}

Semantic roles & 50–950 ramp

primary
#5340CE
secondary
#CBD496
accent
#E245CD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5340CE

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

Preview Lab → · Contrast checker → · Palette generator →

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