#4838CA#4838CA

#4838CA is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.0% C 0.214 H 278.8°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#4838CA
RGBrgb(72, 56, 202)
HSLhsl(247, 58%, 51%)
HSVhsv(247, 72%, 79%)
CMYKcmyk(64.4%, 72.3%, 0%, 20.8%)
CIE-LABlab(34.94, 49.08, -73.10)
CIE-LCHlch(34.94, 88.05, 303.88°)
OKLaboklab(46.04% 0.0328 -0.211)
OKLCHoklch(46.04% 0.214 278.8)
XYZxyz(14.7439, 8.4691, 56.7234)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838CA #BACA38
analogous
#3871CA #4838CA #9138CA
triadic
#4838CA #CA4838 #38CA48
tetradic
#4838CA #CA3871 #BACA38 #38CA91
square
#4838CA #CA3871 #BACA38 #38CA91
split-complementary
#4838CA #CA9138 #71CA38
monochromatic
#251D6B #36299B #4838CA #7468D7 #A199E4

Accessibility & contrast

On white

7.80
#4838CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#4838CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838CA
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838CA#FFFFFF#000000##FFFFFF
##4838CA1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#004CC7
Tritanopia (blue-blind)
#00617E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #4838ca;
/* rgb */ color: rgb(72, 56, 202);
/* oklch */ color: oklch(46.0% 0.214 278.8);
Tailwind
colors: {
  custom: {
    50: '#8b71db',
    500: '#4838ca',
    950: '#000000',
  },
}
SCSS
$custom: #4838ca;
$custom-light: #8b71db;
$custom-dark: #000000;
JSON
{
  "hex": "#4838ca",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 202
  },
  "hsl": {
    "h": 246.575,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46038,
    "c": 0.21353,
    "h": 278.8
  },
  "luminance": 0.0847
}

Semantic roles & 50–950 ramp

primary
#4838CA
secondary
#C8CF8E
accent
#E147D0
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4838CA

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

Preview Lab → · Contrast checker → · Palette generator →

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