#5270DF#5270DF

#5270DF is a mid, vivid blue. Relative luminance 0.187; OKLCH L 58.1% C 0.172 H 269.1°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5270DF
RGBrgb(82, 112, 223)
HSLhsl(227, 69%, 60%)
HSVhsv(227, 63%, 87%)
CMYKcmyk(63.2%, 49.8%, 0%, 12.5%)
CIE-LABlab(50.34, 23.74, -60.03)
CIE-LCHlch(50.34, 64.56, 291.58°)
OKLaboklab(58.07% -0.0027 -0.172)
OKLCHoklch(58.07% 0.172 269.1)
XYZxyz(22.5886, 18.7079, 72.2183)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5270DF #DFC152
analogous
#52B7DF #5270DF #7B52DF
triadic
#5270DF #DF5270 #70DF52
tetradic
#5270DF #DF52B7 #DFC152 #52DF7B
square
#5270DF #DF52B7 #DFC152 #52DF7B
split-complementary
#5270DF #DF7B52 #B7DF52
monochromatic
#1D379A #264ACE #5270DF #869BE9 #B9C5F2

Accessibility & contrast

On white

4.43
#5270DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#5270DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5270DF
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5270DF#FFFFFF#000000##000000
##5270DF1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#327EE3
Deuteranopia (green-blind)
#0772DD
Tritanopia (blue-blind)
#008A9D
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5270df;
/* rgb */ color: rgb(82, 112, 223);
/* oklch */ color: oklch(58.1% 0.172 269.1);
Tailwind
colors: {
  custom: {
    50: '#9098ea',
    500: '#5270df',
    950: '#000000',
  },
}
SCSS
$custom: #5270df;
$custom-light: #9098ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5270df",
  "rgb": {
    "r": 82,
    "g": 112,
    "b": 223
  },
  "hsl": {
    "h": 227.234,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58068,
    "c": 0.17205,
    "h": 269.1
  },
  "luminance": 0.1871
}

Semantic roles & 50–950 ramp

primary
#5270DF
secondary
#E2D6AB
accent
#C63CEC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5270DF

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

Preview Lab → · Contrast checker → · Palette generator →

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