#4A38BC#4A38BC

#4A38BC is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.9% C 0.196 H 281.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#4A38BC
RGBrgb(74, 56, 188)
HSLhsl(248, 54%, 48%)
HSVhsv(248, 70%, 74%)
CMYKcmyk(60.6%, 70.2%, 0%, 26.3%)
CIE-LABlab(33.80, 44.99, -66.76)
CIE-LCHlch(33.80, 80.51, 303.98°)
OKLaboklab(44.87% 0.0381 -0.1924)
OKLCHoklch(44.87% 0.196 281.2)
XYZxyz(13.3125, 7.9141, 48.3933)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38BC #AABC38
analogous
#3868BC #4A38BC #8C38BC
triadic
#4A38BC #BC4A38 #38BC4A
tetradic
#4A38BC #BC3868 #AABC38 #38BC8C
square
#4A38BC #BC3868 #AABC38 #38BC8C
split-complementary
#4A38BC #BC8C38 #68BC38
monochromatic
#251C5E #372A8D #4A38BC #7061D0 #9B90DE

Accessibility & contrast

On white

8.13
#4A38BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4A38BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A38BC
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38BC#FFFFFF#000000##FFFFFF
##4A38BC1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004BBA
Tritanopia (blue-blind)
#005B76
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4a38bc;
/* rgb */ color: rgb(74, 56, 188);
/* oklch */ color: oklch(44.9% 0.196 281.2);
Tailwind
colors: {
  custom: {
    50: '#8970d1',
    500: '#4a38bc',
    950: '#000000',
  },
}
SCSS
$custom: #4a38bc;
$custom-light: #8970d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38bc",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 248.182,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44872,
    "c": 0.19615,
    "h": 281.2
  },
  "luminance": 0.07915
}

Semantic roles & 50–950 ramp

primary
#4A38BC
secondary
#C0C987
accent
#DD4AC9
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4A38BC

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

Preview Lab → · Contrast checker → · Palette generator →

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