#4A40C3#4A40C3

#4A40C3 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.7% C 0.196 H 279.0°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#4A40C3
RGBrgb(74, 64, 195)
HSLhsl(245, 52%, 51%)
HSVhsv(245, 67%, 76%)
CMYKcmyk(62.1%, 67.2%, 0%, 23.5%)
CIE-LABlab(36.10, 42.61, -67.10)
CIE-LCHlch(36.10, 79.49, 302.42°)
OKLaboklab(46.72% 0.0308 -0.1934)
OKLCHoklch(46.72% 0.196 279)
XYZxyz(14.5046, 9.0617, 52.6039)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A40C3 #B9C340
analogous
#4077C3 #4A40C3 #8B40C3
triadic
#4A40C3 #C34A40 #40C34A
tetradic
#4A40C3 #C34077 #B9C340 #40C38B
square
#4A40C3 #C34077 #B9C340 #40C38B
split-complementary
#4A40C3 #C38B40 #77C340
monochromatic
#262168 #372F97 #4A40C3 #766FD2 #A29DE0

Accessibility & contrast

On white

7.47
#4A40C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4A40C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A40C3
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A40C3#FFFFFF#000000##FFFFFF
##4A40C31.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a40c3;
/* rgb */ color: rgb(74, 64, 195);
/* oklch */ color: oklch(46.7% 0.196 279.0);
Tailwind
colors: {
  custom: {
    50: '#8a76d6',
    500: '#4a40c3',
    950: '#000000',
  },
}
SCSS
$custom: #4a40c3;
$custom-light: #8a76d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a40c3",
  "rgb": {
    "r": 74,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 244.58,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46715,
    "c": 0.19585,
    "h": 279
  },
  "luminance": 0.09063
}

Semantic roles & 50–950 ramp

primary
#4A40C3
secondary
#C8CC92
accent
#DC4CD1
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4A40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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