#5340CF#5340CF

#5340CF is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.5% C 0.209 H 281.3°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5340CF
RGBrgb(83, 64, 207)
HSLhsl(248, 60%, 53%)
HSVhsv(248, 69%, 81%)
CMYKcmyk(59.9%, 69.1%, 0%, 18.8%)
CIE-LABlab(37.86, 47.67, -71.17)
CIE-LCHlch(37.86, 85.66, 303.81°)
OKLaboklab(48.48% 0.0408 -0.2051)
OKLCHoklch(48.48% 0.209 281.3)
XYZxyz(16.6596, 10.0096, 60.0735)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340CF #BCCF40
analogous
#4074CF #5340CF #9A40CF
triadic
#5340CF #CF5340 #40CF53
tetradic
#5340CF #CF4074 #BCCF40 #40CF9A
square
#5340CF #CF4074 #BCCF40 #40CF9A
split-complementary
#5340CF #CF9A40 #74CF40
monochromatic
#2A1E77 #3B2AA8 #5340CF #7F71DB #ABA2E8

Accessibility & contrast

On white

6.99
#5340CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5340CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5340CF
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340CF#FFFFFF#000000##FFFFFF
##5340CF1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#006683
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5340cf;
/* rgb */ color: rgb(83, 64, 207);
/* oklch */ color: oklch(48.5% 0.209 281.3);
Tailwind
colors: {
  custom: {
    50: '#9177df',
    500: '#5340cf',
    950: '#000000',
  },
}
SCSS
$custom: #5340cf;
$custom-light: #9177df;
$custom-dark: #000000;
JSON
{
  "hex": "#5340cf",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 247.972,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48478,
    "c": 0.20911,
    "h": 281.3
  },
  "luminance": 0.10011
}

Semantic roles & 50–950 ramp

primary
#5340CF
secondary
#CCD497
accent
#E345CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5340CF

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

Preview Lab → · Contrast checker → · Palette generator →

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