#4C38CB#4C38CB

#4C38CB is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.4% C 0.214 H 280.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#4C38CB
RGBrgb(76, 56, 203)
HSLhsl(248, 59%, 51%)
HSVhsv(248, 72%, 80%)
CMYKcmyk(62.6%, 72.4%, 0%, 20.4%)
CIE-LABlab(35.35, 49.88, -72.99)
CIE-LCHlch(35.35, 88.41, 304.35°)
OKLaboklab(46.44% 0.0379 -0.2106)
OKLCHoklch(46.44% 0.214 280.2)
XYZxyz(15.1707, 8.6755, 57.3634)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38CB #B7CB38
analogous
#386DCB #4C38CB #9538CB
triadic
#4C38CB #CB4C38 #38CB4C
tetradic
#4C38CB #CB386D #B7CB38 #38CB95
square
#4C38CB #CB386D #B7CB38 #38CB95
split-complementary
#4C38CB #CB9538 #6DCB38
monochromatic
#271C6C #39299D #4C38CB #7869D8 #A399E4

Accessibility & contrast

On white

7.68
#4C38CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4C38CB
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38CB#FFFFFF#000000##FFFFFF
##4C38CB1.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4c38cb;
/* rgb */ color: rgb(76, 56, 203);
/* oklch */ color: oklch(46.4% 0.214 280.2);
Tailwind
colors: {
  custom: {
    50: '#8d71dc',
    500: '#4c38cb',
    950: '#000000',
  },
}
SCSS
$custom: #4c38cb;
$custom-light: #8d71dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38cb",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 248.163,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46437,
    "c": 0.21398,
    "h": 280.2
  },
  "luminance": 0.08677
}

Semantic roles & 50–950 ramp

primary
#4C38CB
secondary
#C7D08F
accent
#E246CD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4C38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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