#4A38CB#4A38CB

#4A38CB is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.3% C 0.214 H 279.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#4A38CB
RGBrgb(74, 56, 203)
HSLhsl(247, 59%, 51%)
HSVhsv(247, 72%, 80%)
CMYKcmyk(63.5%, 72.4%, 0%, 20.4%)
CIE-LABlab(35.19, 49.63, -73.26)
CIE-LCHlch(35.19, 88.49, 304.12°)
OKLaboklab(46.28% 0.0352 -0.2114)
OKLCHoklch(46.28% 0.214 279.5)
XYZxyz(15.0143, 8.5948, 57.3561)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A38CB #B9CB38
analogous
#386FCB #4A38CB #9338CB
triadic
#4A38CB #CB4A38 #38CB4A
tetradic
#4A38CB #CB386F #B9CB38 #38CB93
square
#4A38CB #CB386F #B9CB38 #38CB93
split-complementary
#4A38CB #CB9338 #6FCB38
monochromatic
#261C6C #37299D #4A38CB #7669D8 #A299E4

Accessibility & contrast

On white

7.72
#4A38CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4A38CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A38CB
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A38CB#FFFFFF#000000##FFFFFF
##4A38CB1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CF
Deuteranopia (green-blind)
#004DC8
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4a38cb;
/* rgb */ color: rgb(74, 56, 203);
/* oklch */ color: oklch(46.3% 0.214 279.5);
Tailwind
colors: {
  custom: {
    50: '#8c71dc',
    500: '#4a38cb',
    950: '#000000',
  },
}
SCSS
$custom: #4a38cb;
$custom-light: #8c71dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a38cb",
  "rgb": {
    "r": 74,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 247.347,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46284,
    "c": 0.21435,
    "h": 279.5
  },
  "luminance": 0.08596
}

Semantic roles & 50–950 ramp

primary
#4A38CB
secondary
#C8D08F
accent
#E246CF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4A38CB

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

Preview Lab → · Contrast checker → · Palette generator →

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