#4F52A6#4F52A6

#4F52A6 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.0% C 0.132 H 278.6°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#4F52A6
RGBrgb(79, 82, 166)
HSLhsl(238, 36%, 48%)
HSVhsv(238, 52%, 65%)
CMYKcmyk(52.4%, 50.6%, 0%, 34.9%)
CIE-LABlab(38.64, 22.92, -45.86)
CIE-LCHlch(38.64, 51.27, 296.55°)
OKLaboklab(48% 0.0198 -0.1307)
OKLCHoklch(48% 0.132 278.6)
XYZxyz(13.1225, 10.4492, 37.3944)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F52A6 #A6A34F
analogous
#4F7DA6 #4F52A6 #774FA6
triadic
#4F52A6 #A64F52 #52A64F
tetradic
#4F52A6 #A64F7D #A6A34F #4FA677
square
#4F52A6 #A64F7D #A6A34F #4FA677
split-complementary
#4F52A6 #A6774F #7DA64F
monochromatic
#282953 #3B3E7D #4F52A6 #7577BD #9EA0D1

Accessibility & contrast

On white

6.80
#4F52A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#4F52A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F52A6
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F52A6#FFFFFF#000000##FFFFFF
##4F52A61.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295EA9
Deuteranopia (green-blind)
#2058A4
Tritanopia (blue-blind)
#2A6474
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4f52a6;
/* rgb */ color: rgb(79, 82, 166);
/* oklch */ color: oklch(48.0% 0.132 278.6);
Tailwind
colors: {
  custom: {
    50: '#8782c1',
    500: '#4f52a6',
    950: '#000000',
  },
}
SCSS
$custom: #4f52a6;
$custom-light: #8782c1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f52a6",
  "rgb": {
    "r": 79,
    "g": 82,
    "b": 166
  },
  "hsl": {
    "h": 237.931,
    "s": 35.51,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47998,
    "c": 0.13224,
    "h": 278.6
  },
  "luminance": 0.1045
}

Semantic roles & 50–950 ramp

primary
#4F52A6
secondary
#BEBC93
accent
#C85CCC
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #4F52A6

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

Preview Lab → · Contrast checker → · Palette generator →

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