#4A38BD#4A38BD

#4A38BD is a dark, vivid blue. Relative luminance 0.080; OKLCH L 45.0% C 0.197 H 281.1°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#4A38BD
RGBrgb(74, 56, 189)
HSLhsl(248, 54%, 48%)
HSVhsv(248, 70%, 74%)
CMYKcmyk(60.8%, 70.4%, 0%, 25.9%)
CIE-LABlab(33.89, 45.30, -67.20)
CIE-LCHlch(33.89, 81.05, 303.99°)
OKLaboklab(44.97% 0.0379 -0.1937)
OKLCHoklch(44.97% 0.197 281.1)
XYZxyz(13.4206, 7.9574, 48.9630)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38BD #ABBD38
analogous
#3869BD #4A38BD #8C38BD
triadic
#4A38BD #BD4A38 #38BD4A
tetradic
#4A38BD #BD3869 #ABBD38 #38BD8C
square
#4A38BD #BD3869 #ABBD38 #38BD8C
split-complementary
#4A38BD #BD8C38 #69BD38
monochromatic
#251C5F #382A8E #4A38BD #7162D0 #9B91DE

Accessibility & contrast

On white

8.10
#4A38BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4A38BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A38BD
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38BD#FFFFFF#000000##FFFFFF
##4A38BD1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a38bd;
/* rgb */ color: rgb(74, 56, 189);
/* oklch */ color: oklch(45.0% 0.197 281.1);
Tailwind
colors: {
  custom: {
    50: '#8a70d2',
    500: '#4a38bd',
    950: '#000000',
  },
}
SCSS
$custom: #4a38bd;
$custom-light: #8a70d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38bd",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 248.12,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44965,
    "c": 0.19738,
    "h": 281.1
  },
  "luminance": 0.07958
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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