#4838C8#4838C8

#4838C8 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.8% C 0.211 H 279.0°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#4838C8
RGBrgb(72, 56, 200)
HSLhsl(247, 57%, 50%)
HSVhsv(247, 72%, 78%)
CMYKcmyk(64%, 72%, 0%, 21.6%)
CIE-LABlab(34.75, 48.46, -72.24)
CIE-LCHlch(34.75, 86.99, 303.85°)
OKLaboklab(45.85% 0.0332 -0.2085)
OKLCHoklch(45.85% 0.211 279)
XYZxyz(14.5086, 8.3750, 55.4844)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838C8 #B8C838
analogous
#3870C8 #4838C8 #9038C8
triadic
#4838C8 #C84838 #38C848
tetradic
#4838C8 #C83870 #B8C838 #38C890
square
#4838C8 #C83870 #B8C838 #38C890
split-complementary
#4838C8 #C89038 #70C838
monochromatic
#251D69 #362A99 #4838C8 #7468D5 #A098E3

Accessibility & contrast

On white

7.85
#4838C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#4838C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838C8
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838C8#FFFFFF#000000##FFFFFF
##4838C81.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CC
Deuteranopia (green-blind)
#004CC5
Tritanopia (blue-blind)
#00607C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4838c8;
/* rgb */ color: rgb(72, 56, 200);
/* oklch */ color: oklch(45.8% 0.211 279.0);
Tailwind
colors: {
  custom: {
    50: '#8b71da',
    500: '#4838c8',
    950: '#000000',
  },
}
SCSS
$custom: #4838c8;
$custom-light: #8b71da;
$custom-dark: #000000;
JSON
{
  "hex": "#4838c8",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 200
  },
  "hsl": {
    "h": 246.667,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45846,
    "c": 0.21113,
    "h": 279
  },
  "luminance": 0.08376
}

Semantic roles & 50–950 ramp

primary
#4838C8
secondary
#C7CE8E
accent
#E048CF
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4838C8

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

Preview Lab → · Contrast checker → · Palette generator →

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