#4838CD#4838CD

#4838CD is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.3% C 0.217 H 278.5°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#4838CD
RGBrgb(72, 56, 205)
HSLhsl(246, 60%, 51%)
HSVhsv(246, 73%, 80%)
CMYKcmyk(64.9%, 72.7%, 0%, 19.6%)
CIE-LABlab(35.23, 50.01, -74.37)
CIE-LCHlch(35.23, 89.62, 303.92°)
OKLaboklab(46.33% 0.0322 -0.2147)
OKLCHoklch(46.33% 0.217 278.5)
XYZxyz(15.1026, 8.6126, 58.6123)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838CD #BDCD38
analogous
#3872CD #4838CD #9238CD
triadic
#4838CD #CD4838 #38CD48
tetradic
#4838CD #CD3872 #BDCD38 #38CD92
square
#4838CD #CD3872 #BDCD38 #38CD92
split-complementary
#4838CD #CD9238 #72CD38
monochromatic
#251C6F #3528A0 #4838CD #7569D9 #A29AE6

Accessibility & contrast

On white

7.71
#4838CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4838CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838CD
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838CD#FFFFFF#000000##FFFFFF
##4838CD1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#004DCA
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4838cd;
/* rgb */ color: rgb(72, 56, 205);
/* oklch */ color: oklch(46.3% 0.217 278.5);
Tailwind
colors: {
  custom: {
    50: '#8c71de',
    500: '#4838cd',
    950: '#000000',
  },
}
SCSS
$custom: #4838cd;
$custom-light: #8c71de;
$custom-dark: #000000;
JSON
{
  "hex": "#4838cd",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 205
  },
  "hsl": {
    "h": 246.443,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46327,
    "c": 0.21712,
    "h": 278.5
  },
  "luminance": 0.08614
}

Semantic roles & 50–950 ramp

primary
#4838CD
secondary
#CAD18F
accent
#E345D2
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4838CD

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

Preview Lab → · Contrast checker → · Palette generator →

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