#5242BF#5242BF

#5242BF is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.3% C 0.187 H 282.4°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#5242BF
RGBrgb(82, 66, 191)
HSLhsl(248, 49%, 50%)
HSVhsv(248, 65%, 75%)
CMYKcmyk(57.1%, 65.4%, 0%, 25.1%)
CIE-LABlab(36.84, 41.42, -63.53)
CIE-LCHlch(36.84, 75.84, 303.10°)
OKLaboklab(47.3% 0.04 -0.1827)
OKLCHoklch(47.3% 0.187 282.4)
XYZxyz(14.8289, 9.4509, 50.3229)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5242BF #AFBF42
analogous
#4270BF #5242BF #9042BF
triadic
#5242BF #BF5242 #42BF52
tetradic
#5242BF #BF4270 #AFBF42 #42BF90
square
#5242BF #BF4270 #AFBF42 #42BF90
split-complementary
#5242BF #BF9042 #70BF42
monochromatic
#2B2265 #3E3292 #5242BF #7C70CE #A69DDE

Accessibility & contrast

On white

7.27
#5242BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5242BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5242BF
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5242BF#FFFFFF#000000##FFFFFF
##5242BF1.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC3
Deuteranopia (green-blind)
#0052BD
Tritanopia (blue-blind)
#17627B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5242bf;
/* rgb */ color: rgb(82, 66, 191);
/* oklch */ color: oklch(47.3% 0.187 282.4);
Tailwind
colors: {
  custom: {
    50: '#8d77d3',
    500: '#5242bf',
    950: '#000000',
  },
}
SCSS
$custom: #5242bf;
$custom-light: #8d77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5242bf",
  "rgb": {
    "r": 82,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 247.68,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47303,
    "c": 0.18705,
    "h": 282.4
  },
  "luminance": 0.09452
}

Semantic roles & 50–950 ramp

primary
#5242BF
secondary
#C3CA93
accent
#D94FC7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5242BF

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

Preview Lab → · Contrast checker → · Palette generator →

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