#4C38B8#4C38B8

#4C38B8 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.7% C 0.191 H 282.6°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#4C38B8
RGBrgb(76, 56, 184)
HSLhsl(249, 53%, 47%)
HSVhsv(249, 70%, 72%)
CMYKcmyk(58.7%, 69.6%, 0%, 27.8%)
CIE-LABlab(33.62, 44.05, -64.70)
CIE-LCHlch(33.62, 78.27, 304.24°)
OKLaboklab(44.67% 0.0415 -0.1863)
OKLCHoklch(44.67% 0.191 282.6)
XYZxyz(13.0437, 7.8247, 46.1611)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38B8 #A4B838
analogous
#3864B8 #4C38B8 #8C38B8
triadic
#4C38B8 #B84C38 #38B84C
tetradic
#4C38B8 #B83864 #A4B838 #38B88C
square
#4C38B8 #B83864 #A4B838 #38B88C
split-complementary
#4C38B8 #B88C38 #64B838
monochromatic
#251B5A #392A89 #4C38B8 #705FCE #9A8EDD

Accessibility & contrast

On white

8.19
#4C38B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4C38B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38B8
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38B8#FFFFFF#000000##FFFFFF
##4C38B81.008.192.578.19
#FFFFFF8.191.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BC
Deuteranopia (green-blind)
#004BB6
Tritanopia (blue-blind)
#075A74
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4c38b8;
/* rgb */ color: rgb(76, 56, 184);
/* oklch */ color: oklch(44.7% 0.191 282.6);
Tailwind
colors: {
  custom: {
    50: '#8a70ce',
    500: '#4c38b8',
    950: '#000000',
  },
}
SCSS
$custom: #4c38b8;
$custom-light: #8a70ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38b8",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 249.375,
    "s": 53.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4467,
    "c": 0.19089,
    "h": 282.6
  },
  "luminance": 0.07826
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4C38B8

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

Preview Lab → · Contrast checker → · Palette generator →

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