#4838CF#4838CF

#4838CF is a mid, highly saturated blue. Relative luminance 0.087; OKLCH L 46.5% C 0.220 H 278.3°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#4838CF
RGBrgb(72, 56, 207)
HSLhsl(246, 61%, 52%)
HSVhsv(246, 73%, 81%)
CMYKcmyk(65.2%, 72.9%, 0%, 18.8%)
CIE-LABlab(35.42, 50.62, -75.22)
CIE-LCHlch(35.42, 90.67, 303.94°)
OKLaboklab(46.52% 0.0318 -0.2172)
OKLCHoklch(46.52% 0.22 278.3)
XYZxyz(15.3455, 8.7098, 59.8919)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838CF #BFCF38
analogous
#3874CF #4838CF #9438CF
triadic
#4838CF #CF4838 #38CF48
tetradic
#4838CF #CF3874 #BFCF38 #38CF94
square
#4838CF #CF3874 #BFCF38 #38CF94
split-complementary
#4838CF #CF9438 #74CF38
monochromatic
#241B71 #3427A3 #4838CF #7569DB #A39BE7

Accessibility & contrast

On white

7.66
#4838CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4838CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838CF
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838CF#FFFFFF#000000##FFFFFF
##4838CF1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D3
Deuteranopia (green-blind)
#004DCC
Tritanopia (blue-blind)
#006380
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4838cf;
/* rgb */ color: rgb(72, 56, 207);
/* oklch */ color: oklch(46.5% 0.220 278.3);
Tailwind
colors: {
  custom: {
    50: '#8c71df',
    500: '#4838cf',
    950: '#000000',
  },
}
SCSS
$custom: #4838cf;
$custom-light: #8c71df;
$custom-dark: #000000;
JSON
{
  "hex": "#4838cf",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 246.358,
    "s": 61.134,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46521,
    "c": 0.2195,
    "h": 278.3
  },
  "luminance": 0.08711
}

Semantic roles & 50–950 ramp

primary
#4838CF
secondary
#CCD390
accent
#E444D3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4838CF

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

Preview Lab → · Contrast checker → · Palette generator →

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