#5240BF#5240BF

#5240BF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 47.0% C 0.189 H 282.8°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5240BF
RGBrgb(82, 64, 191)
HSLhsl(249, 50%, 50%)
HSVhsv(249, 66%, 75%)
CMYKcmyk(57.1%, 66.5%, 0%, 25.1%)
CIE-LABlab(36.41, 42.58, -64.24)
CIE-LCHlch(36.41, 77.07, 303.54°)
OKLaboklab(46.99% 0.0418 -0.1848)
OKLCHoklch(46.99% 0.189 282.8)
XYZxyz(14.7141, 9.2213, 50.2846)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5240BF #ADBF40
analogous
#406DBF #5240BF #9240BF
triadic
#5240BF #BF5240 #40BF52
tetradic
#5240BF #BF406D #ADBF40 #40BF92
square
#5240BF #BF406D #ADBF40 #40BF92
split-complementary
#5240BF #BF9240 #6DBF40
monochromatic
#2B2163 #3E3191 #5240BF #7C6ECE #A59CDE

Accessibility & contrast

On white

7.38
#5240BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5240BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5240BF
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5240BF#FFFFFF#000000##FFFFFF
##5240BF1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#0051BD
Tritanopia (blue-blind)
#18607A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5240bf;
/* rgb */ color: rgb(82, 64, 191);
/* oklch */ color: oklch(47.0% 0.189 282.8);
Tailwind
colors: {
  custom: {
    50: '#8d76d3',
    500: '#5240bf',
    950: '#000000',
  },
}
SCSS
$custom: #5240bf;
$custom-light: #8d76d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5240bf",
  "rgb": {
    "r": 82,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 248.504,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.46991,
    "c": 0.18946,
    "h": 282.8
  },
  "luminance": 0.09222
}

Semantic roles & 50–950 ramp

primary
#5240BF
secondary
#C2CA91
accent
#D94EC6
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5240BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5240BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva