#5258AF#5258AF

#5258AF is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.0% C 0.136 H 277.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5258AF
RGBrgb(82, 88, 175)
HSLhsl(236, 37%, 50%)
HSVhsv(236, 53%, 69%)
CMYKcmyk(53.1%, 49.7%, 0%, 31.4%)
CIE-LABlab(41.00, 22.71, -47.38)
CIE-LCHlch(41.00, 52.54, 295.61°)
OKLaboklab(50.02% 0.0173 -0.1351)
OKLCHoklch(50.02% 0.136 277.3)
XYZxyz(14.7048, 11.8675, 42.0649)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5258AF #AFA952
analogous
#5286AF #5258AF #7A52AF
triadic
#5258AF #AF5258 #58AF52
tetradic
#5258AF #AF5286 #AFA952 #52AF7A
square
#5258AF #AF5286 #AFA952 #52AF7A
split-complementary
#5258AF #AF7A52 #86AF52
monochromatic
#2B2E5C #3E4386 #5258AF #7C80C2 #A6A9D6

Accessibility & contrast

On white

6.22
#5258AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5258AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5258AF
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5258AF#FFFFFF#000000##FFFFFF
##5258AF1.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E65B2
Deuteranopia (green-blind)
#245DAD
Tritanopia (blue-blind)
#296B7B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5258af;
/* rgb */ color: rgb(82, 88, 175);
/* oklch */ color: oklch(50.0% 0.136 277.3);
Tailwind
colors: {
  custom: {
    50: '#8987c7',
    500: '#5258af',
    950: '#000000',
  },
}
SCSS
$custom: #5258af;
$custom-light: #8987c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5258af",
  "rgb": {
    "r": 82,
    "g": 88,
    "b": 175
  },
  "hsl": {
    "h": 236.129,
    "s": 36.759,
    "l": 50.392
  },
  "oklch": {
    "l": 0.50023,
    "c": 0.13618,
    "h": 277.3
  },
  "luminance": 0.11868
}

Semantic roles & 50–950 ramp

primary
#5258AF
secondary
#C3C09A
accent
#C55BCD
background
#F8F8FC
surface
#F0EFF8
border
#CBCAD1
text
#0C0B13
muted
#7D7C82

Preview Lab

Preview with #5258AF

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

Preview Lab → · Contrast checker → · Palette generator →

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