#5340CA#5340CA

#5340CA is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.0% C 0.203 H 281.8°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5340CA
RGBrgb(83, 64, 202)
HSLhsl(248, 57%, 52%)
HSVhsv(248, 68%, 79%)
CMYKcmyk(58.9%, 68.3%, 0%, 20.8%)
CIE-LABlab(37.42, 46.13, -68.99)
CIE-LCHlch(37.42, 82.99, 303.77°)
OKLaboklab(48.03% 0.0416 -0.1987)
OKLCHoklch(48.03% 0.203 281.8)
XYZxyz(16.0580, 9.7690, 56.9051)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5340CA #B7CA40
analogous
#4072CA #5340CA #9840CA
triadic
#5340CA #CA5340 #40CA53
tetradic
#5340CA #CA4072 #B7CA40 #40CA98
square
#5340CA #CA4072 #B7CA40 #40CA98
split-complementary
#5340CA #CA9840 #72CA40
monochromatic
#2A1F70 #3C2CA0 #5340CA #7E70D7 #A9A0E5

Accessibility & contrast

On white

7.11
#5340CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5340CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5340CA
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5340CA#FFFFFF#000000##FFFFFF
##5340CA1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#006480
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5340ca;
/* rgb */ color: rgb(83, 64, 202);
/* oklch */ color: oklch(48.0% 0.203 281.8);
Tailwind
colors: {
  custom: {
    50: '#9076db',
    500: '#5340ca',
    950: '#000000',
  },
}
SCSS
$custom: #5340ca;
$custom-light: #9076db;
$custom-dark: #000000;
JSON
{
  "hex": "#5340ca",
  "rgb": {
    "r": 83,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 248.261,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48033,
    "c": 0.20299,
    "h": 281.8
  },
  "luminance": 0.0977
}

Semantic roles & 50–950 ramp

primary
#5340CA
secondary
#C9D195
accent
#E048CB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5340CA

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

Preview Lab → · Contrast checker → · Palette generator →

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