#4A38BA#4A38BA

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

Color values

HEX#4A38BA
RGBrgb(74, 56, 186)
HSLhsl(248, 54%, 47%)
HSVhsv(248, 70%, 73%)
CMYKcmyk(60.2%, 69.9%, 0%, 27.1%)
CIE-LABlab(33.62, 44.37, -65.88)
CIE-LCHlch(33.62, 79.43, 303.96°)
OKLaboklab(44.69% 0.0384 -0.1898)
OKLCHoklch(44.69% 0.194 281.4)
XYZxyz(13.0984, 7.8284, 47.2657)
Luminance0.0783 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38BA #A8BA38
analogous
#3867BA #4A38BA #8B38BA
triadic
#4A38BA #BA4A38 #38BA4A
tetradic
#4A38BA #BA3867 #A8BA38 #38BA8B
square
#4A38BA #BA3867 #A8BA38 #38BA8B
split-complementary
#4A38BA #BA8B38 #67BA38
monochromatic
#251C5C #372A8B #4A38BA #6F60CF #9A8FDD

Accessibility & contrast

On white

8.18
#4A38BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A38BA
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38BA#FFFFFF#000000##FFFFFF
##4A38BA1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a38ba;
/* rgb */ color: rgb(74, 56, 186);
/* oklch */ color: oklch(44.7% 0.194 281.4);
Tailwind
colors: {
  custom: {
    50: '#8970d0',
    500: '#4a38ba',
    950: '#000000',
  },
}
SCSS
$custom: #4a38ba;
$custom-light: #8970d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38ba",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 248.308,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44688,
    "c": 0.19368,
    "h": 281.4
  },
  "luminance": 0.07829
}

Semantic roles & 50–950 ramp

primary
#4A38BA
secondary
#BFC886
accent
#DD4BC9
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4A38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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