#4B38C6#4B38C6

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

Color values

HEX#4B38C6
RGBrgb(75, 56, 198)
HSLhsl(248, 56%, 50%)
HSVhsv(248, 72%, 78%)
CMYKcmyk(62.1%, 71.7%, 0%, 22.4%)
CIE-LABlab(34.80, 48.22, -70.98)
CIE-LCHlch(34.80, 85.81, 304.19°)
OKLaboklab(45.89% 0.0376 -0.2047)
OKLCHoklch(45.89% 0.208 280.4)
XYZxyz(14.5056, 8.4003, 54.2722)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B38C6 #B3C638
analogous
#386CC6 #4B38C6 #9238C6
triadic
#4B38C6 #C64B38 #38C64B
tetradic
#4B38C6 #C6386C #B3C638 #38C692
square
#4B38C6 #C6386C #B3C638 #38C692
split-complementary
#4B38C6 #C69238 #6CC638
monochromatic
#271D67 #392B96 #4B38C6 #7667D4 #A197E2

Accessibility & contrast

On white

7.84
#4B38C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4B38C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B38C6
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B38C6#FFFFFF#000000##FFFFFF
##4B38C61.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.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: #4b38c6;
/* rgb */ color: rgb(75, 56, 198);
/* oklch */ color: oklch(45.9% 0.208 280.4);
Tailwind
colors: {
  custom: {
    50: '#8c71d8',
    500: '#4b38c6',
    950: '#000000',
  },
}
SCSS
$custom: #4b38c6;
$custom-light: #8c71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4b38c6",
  "rgb": {
    "r": 75,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 248.028,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45885,
    "c": 0.20816,
    "h": 280.4
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

primary
#4B38C6
secondary
#C4CD8D
accent
#DF49CB
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4B38C6

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

Preview Lab → · Contrast checker → · Palette generator →

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