#4C38B7#4C38B7

#4C38B7 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.6% C 0.190 H 282.7°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#4C38B7
RGBrgb(76, 56, 183)
HSLhsl(249, 53%, 47%)
HSVhsv(249, 69%, 72%)
CMYKcmyk(58.5%, 69.4%, 0%, 28.2%)
CIE-LABlab(33.53, 43.74, -64.26)
CIE-LCHlch(33.53, 77.73, 304.24°)
OKLaboklab(44.58% 0.0417 -0.185)
OKLCHoklch(44.58% 0.19 282.7)
XYZxyz(12.9393, 7.7829, 45.6110)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38B7 #A3B738
analogous
#3864B7 #4C38B7 #8C38B7
triadic
#4C38B7 #B74C38 #38B74C
tetradic
#4C38B7 #B73864 #A3B738 #38B78C
square
#4C38B7 #B73864 #A3B738 #38B78C
split-complementary
#4C38B7 #B78C38 #64B738
monochromatic
#251B59 #392A88 #4C38B7 #705ECE #9A8DDC

Accessibility & contrast

On white

8.21
#4C38B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#4C38B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38B7
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38B7#FFFFFF#000000##FFFFFF
##4C38B71.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#0A5973
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c38b7;
/* rgb */ color: rgb(76, 56, 183);
/* oklch */ color: oklch(44.6% 0.190 282.7);
Tailwind
colors: {
  custom: {
    50: '#8a70ce',
    500: '#4c38b7',
    950: '#000000',
  },
}
SCSS
$custom: #4c38b7;
$custom-light: #8a70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38b7",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 249.449,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4458,
    "c": 0.18966,
    "h": 282.7
  },
  "luminance": 0.07784
}

Semantic roles & 50–950 ramp

primary
#4C38B7
secondary
#BCC784
accent
#DD4BC6
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4C38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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