#4A38CA#4A38CA

#4A38CA is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.2% C 0.213 H 279.6°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#4A38CA
RGBrgb(74, 56, 202)
HSLhsl(247, 58%, 51%)
HSVhsv(247, 72%, 79%)
CMYKcmyk(63.4%, 72.3%, 0%, 20.8%)
CIE-LABlab(35.10, 49.32, -72.83)
CIE-LCHlch(35.10, 87.96, 304.11°)
OKLaboklab(46.19% 0.0354 -0.2102)
OKLCHoklch(46.19% 0.213 279.6)
XYZxyz(14.8955, 8.5473, 56.7305)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38CA #B8CA38
analogous
#386FCA #4A38CA #9338CA
triadic
#4A38CA #CA4A38 #38CA4A
tetradic
#4A38CA #CA386F #B8CA38 #38CA93
square
#4A38CA #CA386F #B8CA38 #38CA93
split-complementary
#4A38CA #CA9338 #6FCA38
monochromatic
#261D6B #37299B #4A38CA #7668D7 #A299E4

Accessibility & contrast

On white

7.75
#4A38CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4A38CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A38CA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38CA#FFFFFF#000000##FFFFFF
##4A38CA1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#004DC7
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4a38ca;
/* rgb */ color: rgb(74, 56, 202);
/* oklch */ color: oklch(46.2% 0.213 279.6);
Tailwind
colors: {
  custom: {
    50: '#8c71db',
    500: '#4a38ca',
    950: '#000000',
  },
}
SCSS
$custom: #4a38ca;
$custom-light: #8c71db;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38ca",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 247.397,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46188,
    "c": 0.21315,
    "h": 279.6
  },
  "luminance": 0.08548
}

Semantic roles & 50–950 ramp

primary
#4A38CA
secondary
#C7CF8E
accent
#E147CE
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4A38CA

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

Preview Lab → · Contrast checker → · Palette generator →

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