#4C38B2#4C38B2

#4C38B2 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 44.1% C 0.183 H 283.4°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#4C38B2
RGBrgb(76, 56, 178)
HSLhsl(250, 52%, 46%)
HSVhsv(250, 69%, 70%)
CMYKcmyk(57.3%, 68.5%, 0%, 30.2%)
CIE-LABlab(33.09, 42.19, -62.01)
CIE-LCHlch(33.09, 75.00, 304.23°)
OKLaboklab(44.13% 0.0425 -0.1784)
OKLCHoklch(44.13% 0.183 283.4)
XYZxyz(12.4281, 7.5784, 42.9187)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38B2 #9EB238
analogous
#3861B2 #4C38B2 #8938B2
triadic
#4C38B2 #B24C38 #38B24C
tetradic
#4C38B2 #B23861 #9EB238 #38B289
square
#4C38B2 #B23861 #9EB238 #38B289
split-complementary
#4C38B2 #B28938 #61B238
monochromatic
#241B55 #382983 #4C38B2 #6E5CCC #978ADA

Accessibility & contrast

On white

8.35
#4C38B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#4C38B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38B2
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38B2#FFFFFF#000000##FFFFFF
##4C38B21.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004AB0
Tritanopia (blue-blind)
#165870
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4c38b2;
/* rgb */ color: rgb(76, 56, 178);
/* oklch */ color: oklch(44.1% 0.183 283.4);
Tailwind
colors: {
  custom: {
    50: '#8970ca',
    500: '#4c38b2',
    950: '#000000',
  },
}
SCSS
$custom: #4c38b2;
$custom-light: #8970ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38b2",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 249.836,
    "s": 52.137,
    "l": 45.882
  },
  "oklch": {
    "l": 0.44131,
    "c": 0.18341,
    "h": 283.4
  },
  "luminance": 0.07579
}

Semantic roles & 50–950 ramp

primary
#4C38B2
secondary
#B9C581
accent
#DC4CC4
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0813
muted
#7D7B82

Preview Lab

Preview with #4C38B2

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

Preview Lab → · Contrast checker → · Palette generator →

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