#4838BC#4838BC

#4838BC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.7% C 0.196 H 280.4°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#4838BC
RGBrgb(72, 56, 188)
HSLhsl(247, 54%, 48%)
HSVhsv(247, 70%, 74%)
CMYKcmyk(61.7%, 70.2%, 0%, 26.3%)
CIE-LABlab(33.64, 44.71, -67.04)
CIE-LCHlch(33.64, 80.58, 303.70°)
OKLaboklab(44.71% 0.0354 -0.1933)
OKLCHoklch(44.71% 0.196 280.4)
XYZxyz(13.1609, 7.8359, 48.3862)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838BC #ACBC38
analogous
#386ABC #4838BC #8A38BC
triadic
#4838BC #BC4838 #38BC48
tetradic
#4838BC #BC386A #ACBC38 #38BC8A
square
#4838BC #BC386A #ACBC38 #38BC8A
split-complementary
#4838BC #BC8A38 #6ABC38
monochromatic
#241C5E #362A8D #4838BC #6F61D0 #9A90DE

Accessibility & contrast

On white

8.18
#4838BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4838BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838BC
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838BC#FFFFFF#000000##FFFFFF
##4838BC1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4838bc;
/* rgb */ color: rgb(72, 56, 188);
/* oklch */ color: oklch(44.7% 0.196 280.4);
Tailwind
colors: {
  custom: {
    50: '#8870d1',
    500: '#4838bc',
    950: '#000000',
  },
}
SCSS
$custom: #4838bc;
$custom-light: #8870d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4838bc",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 188
  },
  "hsl": {
    "h": 247.273,
    "s": 54.098,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44714,
    "c": 0.19649,
    "h": 280.4
  },
  "luminance": 0.07837
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4838BC

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

Preview Lab → · Contrast checker → · Palette generator →

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