#4A38BF#4A38BF

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

Color values

HEX#4A38BF
RGBrgb(74, 56, 191)
HSLhsl(248, 55%, 48%)
HSVhsv(248, 71%, 75%)
CMYKcmyk(61.3%, 70.7%, 0%, 25.1%)
CIE-LABlab(34.08, 45.93, -68.08)
CIE-LCHlch(34.08, 82.12, 304.00°)
OKLaboklab(45.15% 0.0376 -0.1963)
OKLCHoklch(45.15% 0.2 280.8)
XYZxyz(13.6392, 8.0448, 50.1142)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38BF #ADBF38
analogous
#3869BF #4A38BF #8D38BF
triadic
#4A38BF #BF4A38 #38BF4A
tetradic
#4A38BF #BF3869 #ADBF38 #38BF8D
square
#4A38BF #BF3869 #ADBF38 #38BF8D
split-complementary
#4A38BF #BF8D38 #69BF38
monochromatic
#251C60 #382A90 #4A38BF #7263D1 #9D92DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A38BF#FFFFFF#000000##FFFFFF
##4A38BF1.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)
#0055C3
Deuteranopia (green-blind)
#004BBC
Tritanopia (blue-blind)
#005D77
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4a38bf;
/* rgb */ color: rgb(74, 56, 191);
/* oklch */ color: oklch(45.2% 0.200 280.8);
Tailwind
colors: {
  custom: {
    50: '#8a71d3',
    500: '#4a38bf',
    950: '#000000',
  },
}
SCSS
$custom: #4a38bf;
$custom-light: #8a71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38bf",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 248,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45151,
    "c": 0.19984,
    "h": 280.8
  },
  "luminance": 0.08046
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4A38BF

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

Preview Lab → · Contrast checker → · Palette generator →

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