#4838AE#4838AE

#4838AE is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.4% C 0.179 H 282.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#4838AE
RGBrgb(72, 56, 174)
HSLhsl(248, 51%, 45%)
HSVhsv(248, 68%, 68%)
CMYKcmyk(58.6%, 67.8%, 0%, 31.8%)
CIE-LABlab(32.39, 40.30, -60.77)
CIE-LCHlch(32.39, 72.92, 303.55°)
OKLaboklab(43.44% 0.0376 -0.1749)
OKLCHoklch(43.44% 0.179 282.1)
XYZxyz(11.7243, 7.2613, 40.8199)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838AE #9EAE38
analogous
#3863AE #4838AE #8338AE
triadic
#4838AE #AE4838 #38AE48
tetradic
#4838AE #AE3863 #9EAE38 #38AE83
square
#4838AE #AE3863 #9EAE38 #38AE83
split-complementary
#4838AE #AE8338 #63AE38
monochromatic
#221A51 #352980 #4838AE #6959CA #9388D9

Accessibility & contrast

On white

8.56
#4838AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#4838AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838AE
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838AE#FFFFFF#000000##FFFFFF
##4838AE1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B2
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#09576E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4838ae;
/* rgb */ color: rgb(72, 56, 174);
/* oklch */ color: oklch(43.4% 0.179 282.1);
Tailwind
colors: {
  custom: {
    50: '#8670c7',
    500: '#4838ae',
    950: '#000000',
  },
}
SCSS
$custom: #4838ae;
$custom-light: #8670c7;
$custom-dark: #000000;
JSON
{
  "hex": "#4838ae",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 248.136,
    "s": 51.304,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43439,
    "c": 0.17893,
    "h": 282.1
  },
  "luminance": 0.07262
}

Semantic roles & 50–950 ramp

primary
#4838AE
secondary
#BAC37F
accent
#DB4DC8
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4838AE

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

Preview Lab → · Contrast checker → · Palette generator →

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