#4A38CD#4A38CD

#4A38CD is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.5% C 0.217 H 279.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#4A38CD
RGBrgb(74, 56, 205)
HSLhsl(247, 60%, 51%)
HSVhsv(247, 73%, 80%)
CMYKcmyk(63.9%, 72.7%, 0%, 19.6%)
CIE-LABlab(35.38, 50.24, -74.11)
CIE-LCHlch(35.38, 89.54, 304.14°)
OKLaboklab(46.48% 0.0348 -0.2139)
OKLCHoklch(46.48% 0.217 279.2)
XYZxyz(15.2541, 8.6908, 58.6194)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38CD #BBCD38
analogous
#3870CD #4A38CD #9438CD
triadic
#4A38CD #CD4A38 #38CD4A
tetradic
#4A38CD #CD3870 #BBCD38 #38CD94
square
#4A38CD #CD3870 #BBCD38 #38CD94
split-complementary
#4A38CD #CD9438 #70CD38
monochromatic
#261C6F #3728A0 #4A38CD #7669D9 #A39AE6

Accessibility & contrast

On white

7.67
#4A38CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4A38CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A38CD
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38CD#FFFFFF#000000##FFFFFF
##4A38CD1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#004DCA
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4a38cd;
/* rgb */ color: rgb(74, 56, 205);
/* oklch */ color: oklch(46.5% 0.217 279.2);
Tailwind
colors: {
  custom: {
    50: '#8d71de',
    500: '#4a38cd',
    950: '#000000',
  },
}
SCSS
$custom: #4a38cd;
$custom-light: #8d71de;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38cd",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 247.248,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46476,
    "c": 0.21673,
    "h": 279.2
  },
  "luminance": 0.08692
}

Semantic roles & 50–950 ramp

primary
#4A38CD
secondary
#C9D18F
accent
#E345D0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4A38CD

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

Preview Lab → · Contrast checker → · Palette generator →

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