#4838CC#4838CC

#4838CC is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.2% C 0.216 H 278.6°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#4838CC
RGBrgb(72, 56, 204)
HSLhsl(246, 59%, 51%)
HSVhsv(246, 73%, 80%)
CMYKcmyk(64.7%, 72.5%, 0%, 20%)
CIE-LABlab(35.13, 49.70, -73.95)
CIE-LCHlch(35.13, 89.10, 303.90°)
OKLaboklab(46.23% 0.0324 -0.2135)
OKLCHoklch(46.23% 0.216 278.6)
XYZxyz(14.9822, 8.5645, 57.9786)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838CC #BCCC38
analogous
#3872CC #4838CC #9238CC
triadic
#4838CC #CC4838 #38CC48
tetradic
#4838CC #CC3872 #BCCC38 #38CC92
square
#4838CC #CC3872 #BCCC38 #38CC92
split-complementary
#4838CC #CC9238 #72CC38
monochromatic
#251C6E #35299E #4838CC #7569D8 #A299E5

Accessibility & contrast

On white

7.74
#4838CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4838CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838CC
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838CC#FFFFFF#000000##FFFFFF
##4838CC1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#004DC9
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4838cc;
/* rgb */ color: rgb(72, 56, 204);
/* oklch */ color: oklch(46.2% 0.216 278.6);
Tailwind
colors: {
  custom: {
    50: '#8b71dd',
    500: '#4838cc',
    950: '#000000',
  },
}
SCSS
$custom: #4838cc;
$custom-light: #8b71dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4838cc",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 246.486,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4623,
    "c": 0.21593,
    "h": 278.6
  },
  "luminance": 0.08566
}

Semantic roles & 50–950 ramp

primary
#4838CC
secondary
#CAD18F
accent
#E245D1
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4838CC

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

Preview Lab → · Contrast checker → · Palette generator →

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