#5274DB#5274DB

#5274DB is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.6% C 0.162 H 267.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#5274DB
RGBrgb(82, 116, 219)
HSLhsl(225, 66%, 59%)
HSVhsv(225, 63%, 86%)
CMYKcmyk(62.6%, 47%, 0%, 14.1%)
CIE-LABlab(51.15, 19.90, -56.48)
CIE-LCHlch(51.15, 59.88, 289.41°)
OKLaboklab(58.6% -0.007 -0.1615)
OKLCHoklch(58.6% 0.162 267.5)
XYZxyz(22.5069, 19.3971, 69.5620)
Luminance0.1940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5274DB #DBB952
analogous
#52B9DB #5274DB #7552DB
triadic
#5274DB #DB5274 #74DB52
tetradic
#5274DB #DB52B9 #DBB952 #52DB75
square
#5274DB #DB52B9 #DBB952 #52DB75
split-complementary
#5274DB #DB7552 #B9DB52
monochromatic
#1F3C94 #2950C6 #5274DB #859DE6 #B7C5F0

Accessibility & contrast

On white

4.30
#5274DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#5274DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5274DB
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5274DB#FFFFFF#000000##000000
##5274DB1.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4080DF
Deuteranopia (green-blind)
#2674D9
Tritanopia (blue-blind)
#008C9D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5274db;
/* rgb */ color: rgb(82, 116, 219);
/* oklch */ color: oklch(58.6% 0.162 267.5);
Tailwind
colors: {
  custom: {
    50: '#8f9be7',
    500: '#5274db',
    950: '#000000',
  },
}
SCSS
$custom: #5274db;
$custom-light: #8f9be7;
$custom-dark: #000000;
JSON
{
  "hex": "#5274db",
  "rgb": {
    "r": 82,
    "g": 116,
    "b": 219
  },
  "hsl": {
    "h": 225.109,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.586,
    "c": 0.16167,
    "h": 267.5
  },
  "luminance": 0.19399
}

Semantic roles & 50–950 ramp

primary
#5274DB
secondary
#DFD2AA
accent
#BF3FE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5274DB

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

Preview Lab → · Contrast checker → · Palette generator →

#5274DB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva