#4A38D7#4A38D7

#4A38D7 is a mid, highly saturated blue. Relative luminance 0.092; OKLCH L 47.4% C 0.229 H 278.2°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#4A38D7
RGBrgb(74, 56, 215)
HSLhsl(247, 67%, 53%)
HSVhsv(247, 74%, 84%)
CMYKcmyk(65.6%, 74%, 0%, 15.7%)
CIE-LABlab(36.35, 53.29, -78.31)
CIE-LCHlch(36.35, 94.72, 304.24°)
OKLaboklab(47.45% 0.0327 -0.2262)
OKLCHoklch(47.45% 0.229 278.2)
XYZxyz(16.5000, 9.1891, 65.1810)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38D7 #C5D738
analogous
#3876D7 #4A38D7 #9938D7
triadic
#4A38D7 #D74A38 #38D74A
tetradic
#4A38D7 #D73876 #C5D738 #38D799
square
#4A38D7 #D73876 #C5D738 #38D799
split-complementary
#4A38D7 #D79938 #76D738
monochromatic
#24197C #3323AF #4A38D7 #786BE1 #A79EEB

Accessibility & contrast

On white

7.40
#4A38D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#4A38D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A38D7
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38D7#FFFFFF#000000##FFFFFF
##4A38D71.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#004FD4
Tritanopia (blue-blind)
#006685
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4a38d7;
/* rgb */ color: rgb(74, 56, 215);
/* oklch */ color: oklch(47.4% 0.229 278.2);
Tailwind
colors: {
  custom: {
    50: '#8e72e5',
    500: '#4a38d7',
    950: '#000000',
  },
}
SCSS
$custom: #4a38d7;
$custom-light: #8e72e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38d7",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 246.792,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47448,
    "c": 0.22852,
    "h": 278.2
  },
  "luminance": 0.0919
}

Semantic roles & 50–950 ramp

primary
#4A38D7
secondary
#D0D893
accent
#E93ED6
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4A38D7

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

Preview Lab → · Contrast checker → · Palette generator →

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