#4A51DB#4A51DB

#4A51DB is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.6% C 0.207 H 274.3°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#4A51DB
RGBrgb(74, 81, 219)
HSLhsl(237, 67%, 57%)
HSVhsv(237, 66%, 86%)
CMYKcmyk(66.2%, 63%, 0%, 14.1%)
CIE-LABlab(41.93, 40.33, -71.44)
CIE-LCHlch(41.93, 82.04, 299.45°)
OKLaboklab(51.58% 0.0154 -0.2061)
OKLCHoklch(51.58% 0.207 274.3)
XYZxyz(18.5484, 12.4535, 68.4304)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51DB #DBD44A
analogous
#4A9ADB #4A51DB #8B4ADB
triadic
#4A51DB #DB4A51 #51DB4A
tetradic
#4A51DB #DB4A9A #DBD44A #4ADB8B
square
#4A51DB #DB4A9A #DBD44A #4ADB8B
split-complementary
#4A51DB #DB8B4A #9ADB4A
monochromatic
#1C228E #262EC1 #4A51DB #7D82E5 #B0B3EF

Accessibility & contrast

On white

6.02
#4A51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#4A51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A51DB
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51DB#FFFFFF#000000##FFFFFF
##4A51DB1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#005CD8
Tritanopia (blue-blind)
#00748E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4a51db;
/* rgb */ color: rgb(74, 81, 219);
/* oklch */ color: oklch(51.6% 0.207 274.3);
Tailwind
colors: {
  custom: {
    50: '#8d82e7',
    500: '#4a51db',
    950: '#000000',
  },
}
SCSS
$custom: #4a51db;
$custom-light: #8d82e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51db",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 237.103,
    "s": 66.82,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51575,
    "c": 0.20665,
    "h": 274.3
  },
  "luminance": 0.12455
}

Semantic roles & 50–950 ramp

primary
#4A51DB
secondary
#DEDBA3
accent
#E13EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4A51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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