#4A51DF#4A51DF

#4A51DF is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 51.9% C 0.212 H 274.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#4A51DF
RGBrgb(74, 81, 223)
HSLhsl(237, 70%, 58%)
HSVhsv(237, 67%, 87%)
CMYKcmyk(66.8%, 63.7%, 0%, 12.5%)
CIE-LABlab(42.26, 41.66, -73.18)
CIE-LCHlch(42.26, 84.21, 299.65°)
OKLaboklab(51.92% 0.0152 -0.2112)
OKLCHoklch(51.92% 0.212 274.1)
XYZxyz(19.0813, 12.6667, 71.2371)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51DF #DFD84A
analogous
#4A9BDF #4A51DF #8D4ADF
triadic
#4A51DF #DF4A51 #51DF4A
tetradic
#4A51DF #DF4A9B #DFD84A #4ADF8D
square
#4A51DF #DF4A9B #DFD84A #4ADF8D
split-complementary
#4A51DF #DF8D4A #9BDF4A
monochromatic
#1A2094 #232BC8 #4A51DF #7E83E8 #B2B5F1

Accessibility & contrast

On white

5.94
#4A51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#4A51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A51DF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51DF#FFFFFF#000000##FFFFFF
##4A51DF1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE4
Deuteranopia (green-blind)
#005DDC
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4a51df;
/* rgb */ color: rgb(74, 81, 223);
/* oklch */ color: oklch(51.9% 0.212 274.1);
Tailwind
colors: {
  custom: {
    50: '#8e82ea',
    500: '#4a51df',
    950: '#000000',
  },
}
SCSS
$custom: #4a51df;
$custom-light: #8e82ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51df",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 237.181,
    "s": 69.953,
    "l": 58.235
  },
  "oklch": {
    "l": 0.51917,
    "c": 0.21173,
    "h": 274.1
  },
  "luminance": 0.12668
}

Semantic roles & 50–950 ramp

primary
#4A51DF
secondary
#E0DDA5
accent
#E43BED
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4A51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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