#5258CF#5258CF

#5258CF is a mid, vivid blue. Relative luminance 0.133; OKLCH L 52.3% C 0.181 H 276.0°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5258CF
RGBrgb(82, 88, 207)
HSLhsl(237, 57%, 57%)
HSVhsv(237, 60%, 81%)
CMYKcmyk(60.4%, 57.5%, 0%, 18.8%)
CIE-LABlab(43.18, 33.26, -62.50)
CIE-LCHlch(43.18, 70.80, 298.02°)
OKLaboklab(52.34% 0.0189 -0.1796)
OKLCHoklch(52.34% 0.181 276)
XYZxyz(18.2282, 13.2769, 60.6215)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258CF #CFC952
analogous
#5297CF #5258CF #8B52CF
triadic
#5258CF #CF5258 #58CF52
tetradic
#5258CF #CF5297 #CFC952 #52CF8B
square
#5258CF #CF5297 #CFC952 #52CF8B
split-complementary
#5258CF #CF8B52 #97CF52
monochromatic
#242982 #3138B2 #5258CF #8286DC #B2B4EA

Accessibility & contrast

On white

5.74
#5258CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5258CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258CF
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258CF#FFFFFF#000000##FFFFFF
##5258CF1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD3
Deuteranopia (green-blind)
#0061CD
Tritanopia (blue-blind)
#00758B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5258cf;
/* rgb */ color: rgb(82, 88, 207);
/* oklch */ color: oklch(52.3% 0.181 276.0);
Tailwind
colors: {
  custom: {
    50: '#8e87de',
    500: '#5258cf',
    950: '#000000',
  },
}
SCSS
$custom: #5258cf;
$custom-light: #8e87de;
$custom-dark: #000000;
JSON
{
  "hex": "#5258cf",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 207
  },
  "hsl": {
    "h": 237.12,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52342,
    "c": 0.18057,
    "h": 276
  },
  "luminance": 0.13278
}

Semantic roles & 50–950 ramp

primary
#5258CF
secondary
#D8D6A5
accent
#D948E0
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5258CF

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

Preview Lab → · Contrast checker → · Palette generator →

#5258CF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva