#4A38B7#4A38B7

#4A38B7 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.4% C 0.190 H 281.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#4A38B7
RGBrgb(74, 56, 183)
HSLhsl(249, 53%, 47%)
HSVhsv(249, 69%, 72%)
CMYKcmyk(59.6%, 69.4%, 0%, 28.2%)
CIE-LABlab(33.35, 43.44, -64.54)
CIE-LCHlch(33.35, 77.80, 303.94°)
OKLaboklab(44.41% 0.0389 -0.1859)
OKLCHoklch(44.41% 0.19 281.8)
XYZxyz(12.7828, 7.7022, 45.6036)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38B7 #A5B738
analogous
#3866B7 #4A38B7 #8A38B7
triadic
#4A38B7 #B74A38 #38B74A
tetradic
#4A38B7 #B73866 #A5B738 #38B78A
square
#4A38B7 #B73866 #A5B738 #38B78A
split-complementary
#4A38B7 #B78A38 #66B738
monochromatic
#241B59 #372A88 #4A38B7 #6E5ECE #988DDC

Accessibility & contrast

On white

8.27
#4A38B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#4A38B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A38B7
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38B7#FFFFFF#000000##FFFFFF
##4A38B71.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#005A73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #4a38b7;
/* rgb */ color: rgb(74, 56, 183);
/* oklch */ color: oklch(44.4% 0.190 281.8);
Tailwind
colors: {
  custom: {
    50: '#8970ce',
    500: '#4a38b7',
    950: '#000000',
  },
}
SCSS
$custom: #4a38b7;
$custom-light: #8970ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38b7",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 248.504,
    "s": 53.138,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44414,
    "c": 0.18995,
    "h": 281.8
  },
  "luminance": 0.07703
}

Semantic roles & 50–950 ramp

primary
#4A38B7
secondary
#BDC784
accent
#DD4BC8
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #4A38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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