#4838DF#4838DF

#4838DF is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 48.1% C 0.238 H 276.8°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#4838DF
RGBrgb(72, 56, 223)
HSLhsl(246, 72%, 55%)
HSVhsv(246, 75%, 87%)
CMYKcmyk(67.7%, 74.9%, 0%, 12.5%)
CIE-LABlab(36.99, 55.51, -81.84)
CIE-LCHlch(36.99, 98.89, 304.15°)
OKLaboklab(48.1% 0.0284 -0.2365)
OKLCHoklch(48.1% 0.238 276.8)
XYZxyz(17.4016, 9.5322, 70.7206)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838DF #CFDF38
analogous
#387BDF #4838DF #9C38DF
triadic
#4838DF #DF4838 #38DF48
tetradic
#4838DF #DF387B #CFDF38 #38DF9C
square
#4838DF #DF387B #CFDF38 #38DF9C
split-complementary
#4838DF #DF9C38 #7BDF38
monochromatic
#211687 #2D1EBC #4838DF #786DE7 #A9A1F0

Accessibility & contrast

On white

7.22
#4838DF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4838DF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838DF
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838DF#FFFFFF#000000##FFFFFF
##4838DF1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE4
Deuteranopia (green-blind)
#0050DC
Tritanopia (blue-blind)
#006989
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4838df;
/* rgb */ color: rgb(72, 56, 223);
/* oklch */ color: oklch(48.1% 0.238 276.8);
Tailwind
colors: {
  custom: {
    50: '#8f72ea',
    500: '#4838df',
    950: '#000000',
  },
}
SCSS
$custom: #4838df;
$custom-light: #8f72ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4838df",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 223
  },
  "hsl": {
    "h": 245.749,
    "s": 72.294,
    "l": 54.706
  },
  "oklch": {
    "l": 0.481,
    "c": 0.23821,
    "h": 276.8
  },
  "luminance": 0.09534
}

Semantic roles & 50–950 ramp

primary
#4838DF
secondary
#D6DD96
accent
#EF39DE
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4838DF

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

Preview Lab → · Contrast checker → · Palette generator →

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