#5270EF#5270EF

#5270EF is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.2% C 0.193 H 269.6°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5270EF
RGBrgb(82, 112, 239)
HSLhsl(229, 83%, 63%)
HSVhsv(229, 66%, 94%)
CMYKcmyk(65.7%, 53.1%, 0%, 6.3%)
CIE-LABlab(51.40, 29.21, -67.32)
CIE-LCHlch(51.40, 73.38, 293.46°)
OKLaboklab(59.2% -0.0014 -0.1935)
OKLCHoklch(59.2% 0.193 269.6)
XYZxyz(24.8485, 19.6119, 84.1206)
Luminance0.1961 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5270EF #EFD152
analogous
#52BEEF #5270EF #8252EF
triadic
#5270EF #EF5270 #70EF52
tetradic
#5270EF #EF52BE #EFD152 #52EF82
square
#5270EF #EF52BE #EFD152 #52EF82
split-complementary
#5270EF #EF8252 #BEEF52
monochromatic
#1130B6 #1A42EA #5270EF #8A9EF4 #C2CDF9

Accessibility & contrast

On white

4.27
#5270EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#5270EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5270EF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5270EF#FFFFFF#000000##000000
##5270EF1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1382F3
Deuteranopia (green-blind)
#0074EC
Tritanopia (blue-blind)
#008EA5
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5270ef;
/* rgb */ color: rgb(82, 112, 239);
/* oklch */ color: oklch(59.2% 0.193 269.6);
Tailwind
colors: {
  custom: {
    50: '#9398f5',
    500: '#5270ef',
    950: '#000000',
  },
}
SCSS
$custom: #5270ef;
$custom-light: #9398f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5270ef",
  "rgb": {
    "r": 82,
    "g": 112,
    "b": 239
  },
  "hsl": {
    "h": 228.535,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59198,
    "c": 0.19347,
    "h": 269.6
  },
  "luminance": 0.19614
}

Semantic roles & 50–950 ramp

primary
#5270EF
secondary
#EBE0B2
accent
#B606DF
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5270EF

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

Preview Lab → · Contrast checker → · Palette generator →

#5270EF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva