#5340C8#5340C8

#5340C8 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.201 H 282.1°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5340C8
RGBrgb(83, 64, 200)
HSLhsl(248, 55%, 52%)
HSVhsv(248, 68%, 78%)
CMYKcmyk(58.5%, 68%, 0%, 21.6%)
CIE-LABlab(37.25, 45.52, -68.11)
CIE-LCHlch(37.25, 81.92, 303.76°)
OKLaboklab(47.86% 0.0419 -0.1961)
OKLCHoklch(47.86% 0.201 282.1)
XYZxyz(15.8228, 9.6749, 55.6660)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340C8 #B5C840
analogous
#4071C8 #5340C8 #9740C8
triadic
#5340C8 #C85340 #40C853
tetradic
#5340C8 #C84071 #B5C840 #40C897
square
#5340C8 #C84071 #B5C840 #40C897
split-complementary
#5340C8 #C89740 #71C840
monochromatic
#2B206E #3D2D9D #5340C8 #7E70D6 #A99FE3

Accessibility & contrast

On white

7.15
#5340C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5340C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340C8
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340C8#FFFFFF#000000##FFFFFF
##5340C81.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#05647F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5340c8;
/* rgb */ color: rgb(83, 64, 200);
/* oklch */ color: oklch(47.9% 0.201 282.1);
Tailwind
colors: {
  custom: {
    50: '#8f76da',
    500: '#5340c8',
    950: '#000000',
  },
}
SCSS
$custom: #5340c8;
$custom-light: #8f76da;
$custom-dark: #000000;
JSON
{
  "hex": "#5340c8",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 248.382,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.47856,
    "c": 0.20053,
    "h": 282.1
  },
  "luminance": 0.09676
}

Semantic roles & 50–950 ramp

primary
#5340C8
secondary
#C7D094
accent
#DF49CA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5340C8

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

Preview Lab → · Contrast checker → · Palette generator →

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