#5259D4#5259D4

#5259D4 is a mid, vivid blue. Relative luminance 0.137; OKLCH L 52.9% C 0.186 H 275.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#5259D4
RGBrgb(82, 89, 212)
HSLhsl(237, 60%, 58%)
HSVhsv(237, 61%, 83%)
CMYKcmyk(61.3%, 58%, 0%, 16.9%)
CIE-LABlab(43.79, 34.31, -64.38)
CIE-LCHlch(43.79, 72.95, 298.05°)
OKLaboklab(52.91% 0.018 -0.1851)
OKLCHoklch(52.91% 0.186 275.6)
XYZxyz(18.9318, 13.6906, 63.9195)
Luminance0.1369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5259D4 #D4CD52
analogous
#529AD4 #5259D4 #8C52D4
triadic
#5259D4 #D45259 #59D452
tetradic
#5259D4 #D4529A #D4CD52 #52D48C
square
#5259D4 #D4529A #D4CD52 #52D48C
split-complementary
#5259D4 #D48C52 #9AD452
monochromatic
#222889 #2E36BA #5259D4 #8388E0 #B4B7EC

Accessibility & contrast

On white

5.62
#5259D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5259D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5259D4
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5259D4#FFFFFF#000000##FFFFFF
##5259D41.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD8
Deuteranopia (green-blind)
#0062D2
Tritanopia (blue-blind)
#00778E
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5259d4;
/* rgb */ color: rgb(82, 89, 212);
/* oklch */ color: oklch(52.9% 0.186 275.6);
Tailwind
colors: {
  custom: {
    50: '#8f88e2',
    500: '#5259d4',
    950: '#000000',
  },
}
SCSS
$custom: #5259d4;
$custom-light: #8f88e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5259d4",
  "rgb": {
    "r": 82,
    "g": 89,
    "b": 212
  },
  "hsl": {
    "h": 236.769,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.52908,
    "c": 0.18597,
    "h": 275.6
  },
  "luminance": 0.13692
}

Semantic roles & 50–950 ramp

primary
#5259D4
secondary
#DBD8A7
accent
#DB44E3
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0B15
muted
#7E7C84

Preview Lab

Preview with #5259D4

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

Preview Lab → · Contrast checker → · Palette generator →

#5259D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva