#4A51CA#4A51CA

#4A51CA is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.2% C 0.185 H 275.0°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#4A51CA
RGBrgb(74, 81, 202)
HSLhsl(237, 55%, 54%)
HSVhsv(237, 63%, 79%)
CMYKcmyk(63.4%, 59.9%, 0%, 20.8%)
CIE-LABlab(40.58, 34.62, -63.86)
CIE-LCHlch(40.58, 72.64, 298.46°)
OKLaboklab(50.16% 0.0162 -0.1838)
OKLCHoklch(50.16% 0.185 275)
XYZxyz(16.4236, 11.6036, 57.2399)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51CA #CAC34A
analogous
#4A91CA #4A51CA #834ACA
triadic
#4A51CA #CA4A51 #51CA4A
tetradic
#4A51CA #CA4A91 #CAC34A #4ACA83
square
#4A51CA #CA4A91 #CAC34A #4ACA83
split-complementary
#4A51CA #CA834A #91CA4A
monochromatic
#232777 #3137A6 #4A51CA #797FD8 #A9ACE6

Accessibility & contrast

On white

6.32
#4A51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#4A51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A51CA
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51CA#FFFFFF#000000##FFFFFF
##4A51CA1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CE
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4a51ca;
/* rgb */ color: rgb(74, 81, 202);
/* oklch */ color: oklch(50.2% 0.185 275.0);
Tailwind
colors: {
  custom: {
    50: '#8a82db',
    500: '#4a51ca',
    950: '#000000',
  },
}
SCSS
$custom: #4a51ca;
$custom-light: #8a82db;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51ca",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 236.719,
    "s": 54.701,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50163,
    "c": 0.18455,
    "h": 275
  },
  "luminance": 0.11605
}

Semantic roles & 50–950 ramp

primary
#4A51CA
secondary
#D3D09D
accent
#D64ADE
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4A51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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