#4A38BB#4A38BB

#4A38BB is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.8% C 0.195 H 281.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#4A38BB
RGBrgb(74, 56, 187)
HSLhsl(248, 54%, 48%)
HSVhsv(248, 70%, 73%)
CMYKcmyk(60.4%, 70.1%, 0%, 26.7%)
CIE-LABlab(33.71, 44.68, -66.32)
CIE-LCHlch(33.71, 79.97, 303.97°)
OKLaboklab(44.78% 0.0383 -0.1911)
OKLCHoklch(44.78% 0.195 281.3)
XYZxyz(13.2050, 7.8711, 47.8275)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38BB #A9BB38
analogous
#3868BB #4A38BB #8B38BB
triadic
#4A38BB #BB4A38 #38BB4A
tetradic
#4A38BB #BB3868 #A9BB38 #38BB8B
square
#4A38BB #BB3868 #A9BB38 #38BB8B
split-complementary
#4A38BB #BB8B38 #68BB38
monochromatic
#251C5D #372A8C #4A38BB #7061D0 #9A90DE

Accessibility & contrast

On white

8.16
#4A38BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A38BB
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38BB#FFFFFF#000000##FFFFFF
##4A38BB1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004AB9
Tritanopia (blue-blind)
#005B75
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4a38bb;
/* rgb */ color: rgb(74, 56, 187);
/* oklch */ color: oklch(44.8% 0.195 281.3);
Tailwind
colors: {
  custom: {
    50: '#8970d1',
    500: '#4a38bb',
    950: '#000000',
  },
}
SCSS
$custom: #4a38bb;
$custom-light: #8970d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38bb",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 248.244,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4478,
    "c": 0.19491,
    "h": 281.3
  },
  "luminance": 0.07872
}

Semantic roles & 50–950 ramp

primary
#4A38BB
secondary
#BFC886
accent
#DD4BC9
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4A38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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