#4A38C6#4A38C6

#4A38C6 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.8% C 0.208 H 280.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#4A38C6
RGBrgb(74, 56, 198)
HSLhsl(248, 56%, 50%)
HSVhsv(248, 72%, 78%)
CMYKcmyk(62.6%, 71.7%, 0%, 22.4%)
CIE-LABlab(34.72, 48.09, -71.12)
CIE-LCHlch(34.72, 85.85, 304.07°)
OKLaboklab(45.81% 0.0362 -0.2052)
OKLCHoklch(45.81% 0.208 280)
XYZxyz(14.4280, 8.3603, 54.2685)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38C6 #B4C638
analogous
#386DC6 #4A38C6 #9138C6
triadic
#4A38C6 #C64A38 #38C64A
tetradic
#4A38C6 #C6386D #B4C638 #38C691
square
#4A38C6 #C6386D #B4C638 #38C691
split-complementary
#4A38C6 #C69138 #6DC638
monochromatic
#261D67 #382B96 #4A38C6 #7567D4 #A097E2

Accessibility & contrast

On white

7.86
#4A38C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#4A38C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A38C6
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38C6#FFFFFF#000000##FFFFFF
##4A38C61.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CA
Deuteranopia (green-blind)
#004CC3
Tritanopia (blue-blind)
#005F7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4a38c6;
/* rgb */ color: rgb(74, 56, 198);
/* oklch */ color: oklch(45.8% 0.208 280.0);
Tailwind
colors: {
  custom: {
    50: '#8b71d8',
    500: '#4a38c6',
    950: '#000000',
  },
}
SCSS
$custom: #4a38c6;
$custom-light: #8b71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38c6",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 247.606,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45808,
    "c": 0.20834,
    "h": 280
  },
  "luminance": 0.08361
}

Semantic roles & 50–950 ramp

primary
#4A38C6
secondary
#C5CD8D
accent
#DF49CC
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4A38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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