#4A38E1#4A38E1

#4A38E1 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 48.4% C 0.240 H 277.3°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#4A38E1
RGBrgb(74, 56, 225)
HSLhsl(246, 74%, 55%)
HSVhsv(246, 75%, 88%)
CMYKcmyk(67.1%, 75.1%, 0%, 11.8%)
CIE-LABlab(37.33, 56.31, -82.41)
CIE-LCHlch(37.33, 99.82, 304.34°)
OKLaboklab(48.44% 0.0305 -0.2381)
OKLCHoklch(48.44% 0.24 277.3)
XYZxyz(17.8244, 9.7189, 72.1562)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38E1 #CFE138
analogous
#387AE1 #4A38E1 #9F38E1
triadic
#4A38E1 #E14A38 #38E14A
tetradic
#4A38E1 #E1387A #CFE138 #38E19F
square
#4A38E1 #E1387A #CFE138 #38E19F
split-complementary
#4A38E1 #E19F38 #7AE138
monochromatic
#21158A #2E1DBF #4A38E1 #7A6DE9 #ABA2F1

Accessibility & contrast

On white

7.13
#4A38E1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4A38E1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A38E1
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38E1#FFFFFF#000000##FFFFFF
##4A38E11.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FE6
Deuteranopia (green-blind)
#0051DE
Tritanopia (blue-blind)
#00698B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4a38e1;
/* rgb */ color: rgb(74, 56, 225);
/* oklch */ color: oklch(48.4% 0.240 277.3);
Tailwind
colors: {
  custom: {
    50: '#9072ec',
    500: '#4a38e1',
    950: '#000000',
  },
}
SCSS
$custom: #4a38e1;
$custom-light: #9072ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38e1",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 225
  },
  "hsl": {
    "h": 246.391,
    "s": 73.799,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48438,
    "c": 0.24008,
    "h": 277.3
  },
  "luminance": 0.0972
}

Semantic roles & 50–950 ramp

primary
#4A38E1
secondary
#D6DE97
accent
#F037DD
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4A38E1

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

Preview Lab → · Contrast checker → · Palette generator →

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