#4838E1#4838E1

#4838E1 is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 48.3% C 0.241 H 276.7°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#4838E1
RGBrgb(72, 56, 225)
HSLhsl(246, 74%, 55%)
HSVhsv(246, 75%, 88%)
CMYKcmyk(68%, 75.1%, 0%, 11.8%)
CIE-LABlab(37.19, 56.12, -82.66)
CIE-LCHlch(37.19, 99.91, 304.17°)
OKLaboklab(48.3% 0.0279 -0.2389)
OKLCHoklch(48.3% 0.241 276.7)
XYZxyz(17.6728, 9.6407, 72.1491)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838E1 #D1E138
analogous
#387DE1 #4838E1 #9C38E1
triadic
#4838E1 #E14838 #38E148
tetradic
#4838E1 #E1387D #D1E138 #38E19C
square
#4838E1 #E1387D #D1E138 #38E19C
split-complementary
#4838E1 #E19C38 #7DE138
monochromatic
#20158A #2C1DBF #4838E1 #796DE9 #AAA2F1

Accessibility & contrast

On white

7.17
#4838E1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4838E1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838E1
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838E1#FFFFFF#000000##FFFFFF
##4838E11.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FE6
Deuteranopia (green-blind)
#0050DE
Tritanopia (blue-blind)
#006A8B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4838e1;
/* rgb */ color: rgb(72, 56, 225);
/* oklch */ color: oklch(48.3% 0.241 276.7);
Tailwind
colors: {
  custom: {
    50: '#9072ec',
    500: '#4838e1',
    950: '#000000',
  },
}
SCSS
$custom: #4838e1;
$custom-light: #9072ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4838e1",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 225
  },
  "hsl": {
    "h": 245.68,
    "s": 73.799,
    "l": 55.098
  },
  "oklch": {
    "l": 0.483,
    "c": 0.24051,
    "h": 276.7
  },
  "luminance": 0.09642
}

Semantic roles & 50–950 ramp

primary
#4838E1
secondary
#D7DE97
accent
#F037DF
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #4838E1

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

Preview Lab → · Contrast checker → · Palette generator →

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