#4A52C2#4A52C2

#4A52C2 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.7% C 0.173 H 275.1°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#4A52C2
RGBrgb(74, 82, 194)
HSLhsl(236, 50%, 53%)
HSVhsv(236, 62%, 76%)
CMYKcmyk(61.9%, 57.7%, 0%, 23.9%)
CIE-LABlab(40.22, 31.29, -59.80)
CIE-LCHlch(40.22, 67.49, 297.62°)
OKLaboklab(49.71% 0.0154 -0.1719)
OKLCHoklch(49.71% 0.173 275.1)
XYZxyz(15.5758, 11.3842, 52.4050)
Luminance0.1139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A52C2 #C2BA4A
analogous
#4A8EC2 #4A52C2 #7E4AC2
triadic
#4A52C2 #C24A52 #52C24A
tetradic
#4A52C2 #C24A8E #C2BA4A #4AC27E
square
#4A52C2 #C24A8E #C2BA4A #4AC27E
split-complementary
#4A52C2 #C27E4A #8EC24A
monochromatic
#252A6D #343B9B #4A52C2 #787ED1 #A6AAE1

Accessibility & contrast

On white

6.41
#4A52C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#4A52C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A52C2
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A52C2#FFFFFF#000000##FFFFFF
##4A52C21.006.413.286.41
#FFFFFF6.411.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#006D82
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4a52c2;
/* rgb */ color: rgb(74, 82, 194);
/* oklch */ color: oklch(49.7% 0.173 275.1);
Tailwind
colors: {
  custom: {
    50: '#8982d5',
    500: '#4a52c2',
    950: '#000000',
  },
}
SCSS
$custom: #4a52c2;
$custom-light: #8982d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a52c2",
  "rgb": {
    "r": 74,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 236,
    "s": 49.587,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49707,
    "c": 0.17257,
    "h": 275.1
  },
  "luminance": 0.11385
}

Semantic roles & 50–950 ramp

primary
#4A52C2
secondary
#CECA9A
accent
#D04FD9
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0D0A14
muted
#7D7C83

Preview Lab

Preview with #4A52C2

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

Preview Lab → · Contrast checker → · Palette generator →

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