#4A38D9#4A38D9

#4A38D9 is a mid, highly saturated blue. Relative luminance 0.093; OKLCH L 47.6% C 0.231 H 278.0°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#4A38D9
RGBrgb(74, 56, 217)
HSLhsl(247, 68%, 54%)
HSVhsv(247, 74%, 85%)
CMYKcmyk(65.9%, 74.2%, 0%, 14.9%)
CIE-LABlab(36.54, 53.90, -79.14)
CIE-LCHlch(36.54, 95.75, 304.26°)
OKLaboklab(47.64% 0.0323 -0.2286)
OKLCHoklch(47.64% 0.231 278)
XYZxyz(16.7586, 9.2925, 66.5427)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38D9 #C7D938
analogous
#3876D9 #4A38D9 #9A38D9
triadic
#4A38D9 #D94A38 #38D94A
tetradic
#4A38D9 #D93876 #C7D938 #38D99A
square
#4A38D9 #D93876 #C7D938 #38D99A
split-complementary
#4A38D9 #D99A38 #76D938
monochromatic
#24187E #3222B2 #4A38D9 #796BE3 #A79FED

Accessibility & contrast

On white

7.35
#4A38D9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#4A38D9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A38D9
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38D9#FFFFFF#000000##FFFFFF
##4A38D91.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDE
Deuteranopia (green-blind)
#004FD6
Tritanopia (blue-blind)
#006686
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4a38d9;
/* rgb */ color: rgb(74, 56, 217);
/* oklch */ color: oklch(47.6% 0.231 278.0);
Tailwind
colors: {
  custom: {
    50: '#8f72e6',
    500: '#4a38d9',
    950: '#000000',
  },
}
SCSS
$custom: #4a38d9;
$custom-light: #8f72e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38d9",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 217
  },
  "hsl": {
    "h": 246.708,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47644,
    "c": 0.23084,
    "h": 278
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#4A38D9
secondary
#D1D994
accent
#EB3DD7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4A38D9

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

Preview Lab → · Contrast checker → · Palette generator →

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