#4838DD#4838DD

#4838DD is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.9% C 0.236 H 277.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#4838DD
RGBrgb(72, 56, 221)
HSLhsl(246, 71%, 54%)
HSVhsv(246, 75%, 87%)
CMYKcmyk(67.4%, 74.7%, 0%, 13.3%)
CIE-LABlab(36.79, 54.91, -81.03)
CIE-LCHlch(36.79, 97.88, 304.12°)
OKLaboklab(47.9% 0.0288 -0.2341)
OKLCHoklch(47.9% 0.236 277)
XYZxyz(17.1336, 9.4250, 69.3089)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838DD #CDDD38
analogous
#387BDD #4838DD #9B38DD
triadic
#4838DD #DD4838 #38DD48
tetradic
#4838DD #DD387B #CDDD38 #38DD9B
square
#4838DD #DD387B #CDDD38 #38DD9B
split-complementary
#4838DD #DD9B38 #7BDD38
monochromatic
#211784 #2E1FB8 #4838DD #786CE6 #A8A1EF

Accessibility & contrast

On white

7.28
#4838DD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4838DD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838DD
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838DD#FFFFFF#000000##FFFFFF
##4838DD1.007.282.897.28
#FFFFFF7.281.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DE2
Deuteranopia (green-blind)
#004FDA
Tritanopia (blue-blind)
#006888
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4838dd;
/* rgb */ color: rgb(72, 56, 221);
/* oklch */ color: oklch(47.9% 0.236 277.0);
Tailwind
colors: {
  custom: {
    50: '#8f72e9',
    500: '#4838dd',
    950: '#000000',
  },
}
SCSS
$custom: #4838dd;
$custom-light: #8f72e9;
$custom-dark: #000000;
JSON
{
  "hex": "#4838dd",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 221
  },
  "hsl": {
    "h": 245.818,
    "s": 70.815,
    "l": 54.314
  },
  "oklch": {
    "l": 0.479,
    "c": 0.23591,
    "h": 277
  },
  "luminance": 0.09427
}

Semantic roles & 50–950 ramp

primary
#4838DD
secondary
#D5DB95
accent
#EE3ADC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4838DD

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

Preview Lab → · Contrast checker → · Palette generator →

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