#4838C6#4838C6

#4838C6 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 45.7% C 0.209 H 279.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#4838C6
RGBrgb(72, 56, 198)
HSLhsl(247, 56%, 50%)
HSVhsv(247, 72%, 78%)
CMYKcmyk(63.6%, 71.7%, 0%, 22.4%)
CIE-LABlab(34.56, 47.84, -71.39)
CIE-LCHlch(34.56, 85.93, 303.83°)
OKLaboklab(45.66% 0.0336 -0.206)
OKLCHoklch(45.66% 0.209 279.3)
XYZxyz(14.2764, 8.2822, 54.2614)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838C6 #B6C638
analogous
#386FC6 #4838C6 #8F38C6
triadic
#4838C6 #C64838 #38C648
tetradic
#4838C6 #C6386F #B6C638 #38C68F
square
#4838C6 #C6386F #B6C638 #38C68F
split-complementary
#4838C6 #C68F38 #6FC638
monochromatic
#251D67 #372B96 #4838C6 #7367D4 #9F97E2

Accessibility & contrast

On white

7.90
#4838C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4838C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838C6
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838C6#FFFFFF#000000##FFFFFF
##4838C61.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CA
Deuteranopia (green-blind)
#004CC3
Tritanopia (blue-blind)
#005F7B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4838c6;
/* rgb */ color: rgb(72, 56, 198);
/* oklch */ color: oklch(45.7% 0.209 279.3);
Tailwind
colors: {
  custom: {
    50: '#8a71d9',
    500: '#4838c6',
    950: '#000000',
  },
}
SCSS
$custom: #4838c6;
$custom-light: #8a71d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4838c6",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 198
  },
  "hsl": {
    "h": 246.761,
    "s": 55.906,
    "l": 49.804
  },
  "oklch": {
    "l": 0.45655,
    "c": 0.20871,
    "h": 279.3
  },
  "luminance": 0.08283
}

Semantic roles & 50–950 ramp

primary
#4838C6
secondary
#C6CD8D
accent
#DF49CE
background
#F9F6FD
surface
#F1ECFB
border
#CBC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4838C6

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

Preview Lab → · Contrast checker → · Palette generator →

#4838C6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva