#4838CB#4838CB

#4838CB is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 46.1% C 0.215 H 278.7°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#4838CB
RGBrgb(72, 56, 203)
HSLhsl(247, 59%, 51%)
HSVhsv(247, 72%, 80%)
CMYKcmyk(64.5%, 72.4%, 0%, 20.4%)
CIE-LABlab(35.04, 49.39, -73.52)
CIE-LCHlch(35.04, 88.57, 303.89°)
OKLaboklab(46.13% 0.0326 -0.2122)
OKLCHoklch(46.13% 0.215 278.7)
XYZxyz(14.8627, 8.5167, 57.3490)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838CB #BBCB38
analogous
#3871CB #4838CB #9238CB
triadic
#4838CB #CB4838 #38CB48
tetradic
#4838CB #CB3871 #BBCB38 #38CB92
square
#4838CB #CB3871 #BBCB38 #38CB92
split-complementary
#4838CB #CB9238 #71CB38
monochromatic
#251C6C #36299D #4838CB #7569D8 #A199E4

Accessibility & contrast

On white

7.77
#4838CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#4838CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838CB
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838CB#FFFFFF#000000##FFFFFF
##4838CB1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4838cb;
/* rgb */ color: rgb(72, 56, 203);
/* oklch */ color: oklch(46.1% 0.215 278.7);
Tailwind
colors: {
  custom: {
    50: '#8b71dc',
    500: '#4838cb',
    950: '#000000',
  },
}
SCSS
$custom: #4838cb;
$custom-light: #8b71dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4838cb",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 203
  },
  "hsl": {
    "h": 246.531,
    "s": 58.566,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46134,
    "c": 0.21473,
    "h": 278.7
  },
  "luminance": 0.08518
}

Semantic roles & 50–950 ramp

primary
#4838CB
secondary
#C9D08F
accent
#E246D1
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4838CB

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

Preview Lab → · Contrast checker → · Palette generator →

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