#5245BF#5245BF

#5245BF is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.8% C 0.183 H 281.7°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5245BF
RGBrgb(82, 69, 191)
HSLhsl(246, 49%, 51%)
HSVhsv(246, 64%, 75%)
CMYKcmyk(57.1%, 63.9%, 0%, 25.1%)
CIE-LABlab(37.50, 39.65, -62.45)
CIE-LCHlch(37.50, 73.97, 302.41°)
OKLaboklab(47.78% 0.0373 -0.1795)
OKLCHoklch(47.78% 0.183 281.7)
XYZxyz(15.0088, 9.8107, 50.3829)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5245BF #B2BF45
analogous
#4575BF #5245BF #8F45BF
triadic
#5245BF #BF5245 #45BF52
tetradic
#5245BF #BF4575 #B2BF45 #45BF8F
square
#5245BF #BF4575 #B2BF45 #45BF8F
split-complementary
#5245BF #BF8F45 #75BF45
monochromatic
#2A2366 #3D3394 #5245BF #7C73CF #A7A0DE

Accessibility & contrast

On white

7.09
#5245BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5245BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5245BF
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5245BF#FFFFFF#000000##FFFFFF
##5245BF1.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)
#005CC3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#16637C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5245bf;
/* rgb */ color: rgb(82, 69, 191);
/* oklch */ color: oklch(47.8% 0.183 281.7);
Tailwind
colors: {
  custom: {
    50: '#8d79d3',
    500: '#5245bf',
    950: '#000000',
  },
}
SCSS
$custom: #5245bf;
$custom-light: #8d79d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5245bf",
  "rgb": {
    "r": 82,
    "g": 69,
    "b": 191
  },
  "hsl": {
    "h": 246.393,
    "s": 48.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.47784,
    "c": 0.18336,
    "h": 281.7
  },
  "luminance": 0.09812
}

Semantic roles & 50–950 ramp

primary
#5245BF
secondary
#C5CB95
accent
#D84FCA
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #5245BF

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

Preview Lab → · Contrast checker → · Palette generator →

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