#4A5FAC#4A5FAC

#4A5FAC is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.7% C 0.125 H 270.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#4A5FAC
RGBrgb(74, 95, 172)
HSLhsl(227, 40%, 48%)
HSVhsv(227, 57%, 67%)
CMYKcmyk(57%, 44.8%, 0%, 32.5%)
CIE-LABlab(42.18, 15.52, -43.76)
CIE-LCHlch(42.18, 46.43, 289.53°)
OKLaboklab(50.72% 0.0001 -0.1246)
OKLCHoklch(50.72% 0.125 270)
XYZxyz(14.3602, 12.6177, 40.7005)
Luminance0.1262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A5FAC #AC974A
analogous
#4A90AC #4A5FAC #664AAC
triadic
#4A5FAC #AC4A5F #5FAC4A
tetradic
#4A5FAC #AC4A90 #AC974A #4AAC66
square
#4A5FAC #AC4A90 #AC974A #4AAC66
split-complementary
#4A5FAC #AC664A #90AC4A
monochromatic
#253056 #384781 #4A5FAC #7183C2 #9CA8D4

Accessibility & contrast

On white

5.96
#4A5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#4A5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A5FAC
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A5FAC#FFFFFF#000000##FFFFFF
##4A5FAC1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D68AF
Deuteranopia (green-blind)
#305FAA
Tritanopia (blue-blind)
#0B707D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4a5fac;
/* rgb */ color: rgb(74, 95, 172);
/* oklch */ color: oklch(50.7% 0.125 270.0);
Tailwind
colors: {
  custom: {
    50: '#848cc5',
    500: '#4a5fac',
    950: '#000000',
  },
}
SCSS
$custom: #4a5fac;
$custom-light: #848cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a5fac",
  "rgb": {
    "r": 74,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 227.143,
    "s": 39.837,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5072,
    "c": 0.12457,
    "h": 270
  },
  "luminance": 0.12619
}

Semantic roles & 50–950 ramp

primary
#4A5FAC
secondary
#C1B791
accent
#B658D0
background
#F8F8FC
surface
#F0F0F8
border
#CBCBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #4A5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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