#4E52A2#4E52A2

#4E52A2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.6% C 0.127 H 278.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#4E52A2
RGBrgb(78, 82, 162)
HSLhsl(237, 35%, 47%)
HSVhsv(237, 52%, 64%)
CMYKcmyk(51.9%, 49.4%, 0%, 36.5%)
CIE-LABlab(38.31, 21.38, -44.00)
CIE-LCHlch(38.31, 48.92, 295.92°)
OKLaboklab(47.65% 0.0182 -0.1253)
OKLCHoklch(47.65% 0.127 278.3)
XYZxyz(12.6787, 10.2622, 35.4881)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E52A2 #A29E4E
analogous
#4E7CA2 #4E52A2 #744EA2
triadic
#4E52A2 #A24E52 #52A24E
tetradic
#4E52A2 #A24E7C #A29E4E #4EA274
square
#4E52A2 #A24E7C #A29E4E #4EA274
split-complementary
#4E52A2 #A2744E #7CA24E
monochromatic
#26284F #3A3D79 #4E52A2 #7276BB #9B9ECF

Accessibility & contrast

On white

6.88
#4E52A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4E52A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4E52A2
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E52A2#FFFFFF#000000##FFFFFF
##4E52A21.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5EA5
Deuteranopia (green-blind)
#2557A0
Tritanopia (blue-blind)
#2B6372
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4e52a2;
/* rgb */ color: rgb(78, 82, 162);
/* oklch */ color: oklch(47.6% 0.127 278.3);
Tailwind
colors: {
  custom: {
    50: '#8682be',
    500: '#4e52a2',
    950: '#000000',
  },
}
SCSS
$custom: #4e52a2;
$custom-light: #8682be;
$custom-dark: #000000;
JSON
{
  "hex": "#4e52a2",
  "rgb": {
    "r": 78,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 237.143,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4765,
    "c": 0.12663,
    "h": 278.3
  },
  "luminance": 0.10263
}

Semantic roles & 50–950 ramp

primary
#4E52A2
secondary
#BCBA90
accent
#C65DCB
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #4E52A2

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

Preview Lab → · Contrast checker → · Palette generator →

#4E52A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva