#4A40C2#4A40C2

#4A40C2 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.6% C 0.195 H 279.1°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#4A40C2
RGBrgb(74, 64, 194)
HSLhsl(245, 52%, 51%)
HSVhsv(245, 67%, 76%)
CMYKcmyk(61.9%, 67%, 0%, 23.9%)
CIE-LABlab(36.02, 42.29, -66.66)
CIE-LCHlch(36.02, 78.94, 302.39°)
OKLaboklab(46.63% 0.0309 -0.1921)
OKLCHoklch(46.63% 0.195 279.1)
XYZxyz(14.3919, 9.0166, 52.0104)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40C2 #B8C240
analogous
#4077C2 #4A40C2 #8B40C2
triadic
#4A40C2 #C24A40 #40C24A
tetradic
#4A40C2 #C24077 #B8C240 #40C28B
square
#4A40C2 #C24077 #B8C240 #40C28B
split-complementary
#4A40C2 #C28B40 #77C240
monochromatic
#262167 #373095 #4A40C2 #766ED1 #A29DE0

Accessibility & contrast

On white

7.49
#4A40C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4A40C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40C2
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40C2#FFFFFF#000000##FFFFFF
##4A40C21.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4a40c2;
/* rgb */ color: rgb(74, 64, 194);
/* oklch */ color: oklch(46.6% 0.195 279.1);
Tailwind
colors: {
  custom: {
    50: '#8a76d5',
    500: '#4a40c2',
    950: '#000000',
  },
}
SCSS
$custom: #4a40c2;
$custom-light: #8a76d5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40c2",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 244.615,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46626,
    "c": 0.19459,
    "h": 279.1
  },
  "luminance": 0.09018
}

Semantic roles & 50–950 ramp

primary
#4A40C2
secondary
#C7CC92
accent
#DB4DD0
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4A40C2

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

Preview Lab → · Contrast checker → · Palette generator →

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