#4838BF#4838BF

#4838BF is a dark, highly saturated blue. Relative luminance 0.080; OKLCH L 45.0% C 0.200 H 280.0°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#4838BF
RGBrgb(72, 56, 191)
HSLhsl(247, 55%, 48%)
HSVhsv(247, 71%, 75%)
CMYKcmyk(62.3%, 70.7%, 0%, 25.1%)
CIE-LABlab(33.91, 45.65, -68.35)
CIE-LCHlch(33.91, 82.20, 303.74°)
OKLaboklab(44.99% 0.0348 -0.1971)
OKLCHoklch(44.99% 0.2 280)
XYZxyz(13.4876, 7.9666, 50.1071)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838BF #AFBF38
analogous
#386BBF #4838BF #8B38BF
triadic
#4838BF #BF4838 #38BF48
tetradic
#4838BF #BF386B #AFBF38 #38BF8B
square
#4838BF #BF386B #AFBF38 #38BF8B
split-complementary
#4838BF #BF8B38 #6BBF38
monochromatic
#241C60 #362A90 #4838BF #7063D1 #9B92DF

Accessibility & contrast

On white

8.10
#4838BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#4838BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838BF
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838BF#FFFFFF#000000##FFFFFF
##4838BF1.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#004BBC
Tritanopia (blue-blind)
#005D77
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4838bf;
/* rgb */ color: rgb(72, 56, 191);
/* oklch */ color: oklch(45.0% 0.200 280.0);
Tailwind
colors: {
  custom: {
    50: '#8970d3',
    500: '#4838bf',
    950: '#000000',
  },
}
SCSS
$custom: #4838bf;
$custom-light: #8970d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4838bf",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 247.111,
    "s": 54.656,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44994,
    "c": 0.20019,
    "h": 280
  },
  "luminance": 0.07968
}

Semantic roles & 50–950 ramp

primary
#4838BF
secondary
#C2CA89
accent
#DE4ACC
background
#F9F6FD
surface
#F1ECFA
border
#CBC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4838BF

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

Preview Lab → · Contrast checker → · Palette generator →

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