#4C38BD#4C38BD

#4C38BD is a mid, vivid blue. Relative luminance 0.080; OKLCH L 45.1% C 0.197 H 281.9°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#4C38BD
RGBrgb(76, 56, 189)
HSLhsl(249, 54%, 48%)
HSVhsv(249, 70%, 74%)
CMYKcmyk(59.8%, 70.4%, 0%, 25.9%)
CIE-LABlab(34.06, 45.59, -66.92)
CIE-LCHlch(34.06, 80.97, 304.26°)
OKLaboklab(45.13% 0.0407 -0.1928)
OKLCHoklch(45.13% 0.197 281.9)
XYZxyz(13.5771, 8.0380, 48.9703)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C38BD #A9BD38
analogous
#3866BD #4C38BD #8F38BD
triadic
#4C38BD #BD4C38 #38BD4C
tetradic
#4C38BD #BD3866 #A9BD38 #38BD8F
square
#4C38BD #BD3866 #A9BD38 #38BD8F
split-complementary
#4C38BD #BD8F38 #66BD38
monochromatic
#261C5F #392A8E #4C38BD #7262D0 #9D91DE

Accessibility & contrast

On white

8.05
#4C38BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4C38BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C38BD
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C38BD#FFFFFF#000000##FFFFFF
##4C38BD1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#005C76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4c38bd;
/* rgb */ color: rgb(76, 56, 189);
/* oklch */ color: oklch(45.1% 0.197 281.9);
Tailwind
colors: {
  custom: {
    50: '#8b71d2',
    500: '#4c38bd',
    950: '#000000',
  },
}
SCSS
$custom: #4c38bd;
$custom-light: #8b71d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c38bd",
  "rgb": {
    "r": 76,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 249.023,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45127,
    "c": 0.19706,
    "h": 281.9
  },
  "luminance": 0.08039
}

Semantic roles & 50–950 ramp

primary
#4C38BD
secondary
#BFC987
accent
#DE4AC7
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4C38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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