#5340CB#5340CB

#5340CB is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.204 H 281.7°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5340CB
RGBrgb(83, 64, 203)
HSLhsl(248, 57%, 52%)
HSVhsv(248, 68%, 80%)
CMYKcmyk(59.1%, 68.5%, 0%, 20.4%)
CIE-LABlab(37.51, 46.44, -69.43)
CIE-LCHlch(37.51, 83.53, 303.78°)
OKLaboklab(48.12% 0.0415 -0.2)
OKLCHoklch(48.12% 0.204 281.7)
XYZxyz(16.1768, 9.8165, 57.5307)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340CB #B8CB40
analogous
#4073CB #5340CB #9840CB
triadic
#5340CB #CB5340 #40CB53
tetradic
#5340CB #CB4073 #B8CB40 #40CB98
square
#5340CB #CB4073 #B8CB40 #40CB98
split-complementary
#5340CB #CB9840 #73CB40
monochromatic
#2A1F72 #3C2CA2 #5340CB #7E70D8 #AAA0E5

Accessibility & contrast

On white

7.09
#5340CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5340CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340CB
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340CB#FFFFFF#000000##FFFFFF
##5340CB1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5340cb;
/* rgb */ color: rgb(83, 64, 203);
/* oklch */ color: oklch(48.1% 0.204 281.7);
Tailwind
colors: {
  custom: {
    50: '#9077dc',
    500: '#5340cb',
    950: '#000000',
  },
}
SCSS
$custom: #5340cb;
$custom-light: #9077dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5340cb",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 248.201,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48121,
    "c": 0.20422,
    "h": 281.7
  },
  "luminance": 0.09818
}

Semantic roles & 50–950 ramp

primary
#5340CB
secondary
#C9D295
accent
#E047CC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5340CB

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

Preview Lab → · Contrast checker → · Palette generator →

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