#4838D7#4838D7

#4838D7 is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 47.3% C 0.229 H 277.6°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#4838D7
RGBrgb(72, 56, 215)
HSLhsl(246, 67%, 53%)
HSVhsv(246, 74%, 84%)
CMYKcmyk(66.5%, 74%, 0%, 15.7%)
CIE-LABlab(36.20, 53.08, -78.56)
CIE-LCHlch(36.20, 94.81, 304.05°)
OKLaboklab(47.31% 0.0301 -0.2269)
OKLCHoklch(47.31% 0.229 277.6)
XYZxyz(16.3484, 9.1109, 65.1738)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838D7 #C7D738
analogous
#3877D7 #4838D7 #9838D7
triadic
#4838D7 #D74838 #38D748
tetradic
#4838D7 #D73877 #C7D738 #38D798
square
#4838D7 #D73877 #C7D738 #38D798
split-complementary
#4838D7 #D79838 #77D738
monochromatic
#23197C #3123AF #4838D7 #776BE1 #A69EEB

Accessibility & contrast

On white

7.44
#4838D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#4838D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838D7
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838D7#FFFFFF#000000##FFFFFF
##4838D71.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#004ED4
Tritanopia (blue-blind)
#006685
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4838d7;
/* rgb */ color: rgb(72, 56, 215);
/* oklch */ color: oklch(47.3% 0.229 277.6);
Tailwind
colors: {
  custom: {
    50: '#8e71e5',
    500: '#4838d7',
    950: '#000000',
  },
}
SCSS
$custom: #4838d7;
$custom-light: #8e71e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4838d7",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 215
  },
  "hsl": {
    "h": 246.038,
    "s": 66.527,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47305,
    "c": 0.22893,
    "h": 277.6
  },
  "luminance": 0.09112
}

Semantic roles & 50–950 ramp

primary
#4838D7
secondary
#D1D893
accent
#E93ED8
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4838D7

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

Preview Lab → · Contrast checker → · Palette generator →

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