#4838C5#4838C5

#4838C5 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.6% C 0.208 H 279.4°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#4838C5
RGBrgb(72, 56, 197)
HSLhsl(247, 56%, 50%)
HSVhsv(247, 72%, 77%)
CMYKcmyk(63.5%, 71.6%, 0%, 22.7%)
CIE-LABlab(34.47, 47.53, -70.96)
CIE-LCHlch(34.47, 85.40, 303.81°)
OKLaboklab(45.56% 0.0337 -0.2047)
OKLCHoklch(45.56% 0.208 279.4)
XYZxyz(14.1615, 8.2362, 53.6560)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838C5 #B5C538
analogous
#386EC5 #4838C5 #8F38C5
triadic
#4838C5 #C54838 #38C548
tetradic
#4838C5 #C5386E #B5C538 #38C58F
square
#4838C5 #C5386E #B5C538 #38C58F
split-complementary
#4838C5 #C58F38 #6EC538
monochromatic
#251D66 #372A95 #4838C5 #7367D4 #9F96E1

Accessibility & contrast

On white

7.93
#4838C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#4838C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838C5
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838C5#FFFFFF#000000##FFFFFF
##4838C51.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#004BC2
Tritanopia (blue-blind)
#005F7B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4838c5;
/* rgb */ color: rgb(72, 56, 197);
/* oklch */ color: oklch(45.6% 0.208 279.4);
Tailwind
colors: {
  custom: {
    50: '#8a71d8',
    500: '#4838c5',
    950: '#000000',
  },
}
SCSS
$custom: #4838c5;
$custom-light: #8a71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4838c5",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 246.809,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4556,
    "c": 0.20751,
    "h": 279.4
  },
  "luminance": 0.08237
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4838C5

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

Preview Lab → · Contrast checker → · Palette generator →

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