#4A38C5#4A38C5

#4A38C5 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.7% C 0.207 H 280.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#4A38C5
RGBrgb(74, 56, 197)
HSLhsl(248, 56%, 50%)
HSVhsv(248, 72%, 77%)
CMYKcmyk(62.4%, 71.6%, 0%, 22.7%)
CIE-LABlab(34.63, 47.78, -70.69)
CIE-LCHlch(34.63, 85.32, 304.06°)
OKLaboklab(45.71% 0.0364 -0.2039)
OKLCHoklch(45.71% 0.207 280.1)
XYZxyz(14.3131, 8.3143, 53.6631)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38C5 #B3C538
analogous
#386CC5 #4A38C5 #9138C5
triadic
#4A38C5 #C54A38 #38C54A
tetradic
#4A38C5 #C5386C #B3C538 #38C591
square
#4A38C5 #C5386C #B3C538 #38C591
split-complementary
#4A38C5 #C59138 #6CC538
monochromatic
#261D66 #382A95 #4A38C5 #7467D4 #A096E1

Accessibility & contrast

On white

7.89
#4A38C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4A38C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A38C5
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38C5#FFFFFF#000000##FFFFFF
##4A38C51.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#004CC2
Tritanopia (blue-blind)
#005F7B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4a38c5;
/* rgb */ color: rgb(74, 56, 197);
/* oklch */ color: oklch(45.7% 0.207 280.1);
Tailwind
colors: {
  custom: {
    50: '#8b71d8',
    500: '#4a38c5',
    950: '#000000',
  },
}
SCSS
$custom: #4a38c5;
$custom-light: #8b71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38c5",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 247.66,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45713,
    "c": 0.20714,
    "h": 280.1
  },
  "luminance": 0.08315
}

Semantic roles & 50–950 ramp

primary
#4A38C5
secondary
#C4CD8C
accent
#DF49CC
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4A38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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