#4838BD#4838BD

#4838BD is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.8% C 0.198 H 280.3°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#4838BD
RGBrgb(72, 56, 189)
HSLhsl(247, 54%, 48%)
HSVhsv(247, 70%, 74%)
CMYKcmyk(61.9%, 70.4%, 0%, 25.9%)
CIE-LABlab(33.73, 45.03, -67.48)
CIE-LCHlch(33.73, 81.12, 303.71°)
OKLaboklab(44.81% 0.0352 -0.1946)
OKLCHoklch(44.81% 0.198 280.3)
XYZxyz(13.2691, 7.8792, 48.9559)
Luminance0.0788 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838BD #ADBD38
analogous
#386ABD #4838BD #8A38BD
triadic
#4838BD #BD4838 #38BD48
tetradic
#4838BD #BD386A #ADBD38 #38BD8A
square
#4838BD #BD386A #ADBD38 #38BD8A
split-complementary
#4838BD #BD8A38 #6ABD38
monochromatic
#241C5F #362A8E #4838BD #6F62D0 #9A91DE

Accessibility & contrast

On white

8.15
#4838BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#4838BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838BD
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838BD#FFFFFF#000000##FFFFFF
##4838BD1.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#004ABB
Tritanopia (blue-blind)
#005C76
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4838bd;
/* rgb */ color: rgb(72, 56, 189);
/* oklch */ color: oklch(44.8% 0.198 280.3);
Tailwind
colors: {
  custom: {
    50: '#8970d2',
    500: '#4838bd',
    950: '#000000',
  },
}
SCSS
$custom: #4838bd;
$custom-light: #8970d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4838bd",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 247.218,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44807,
    "c": 0.19773,
    "h": 280.3
  },
  "luminance": 0.0788
}

Semantic roles & 50–950 ramp

primary
#4838BD
secondary
#C1C987
accent
#DE4ACC
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4838BD

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

Preview Lab → · Contrast checker → · Palette generator →

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