#4838AF#4838AF

#4838AF is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.5% C 0.180 H 282.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#4838AF
RGBrgb(72, 56, 175)
HSLhsl(248, 52%, 45%)
HSVhsv(248, 68%, 69%)
CMYKcmyk(58.9%, 68%, 0%, 31.4%)
CIE-LABlab(32.48, 40.62, -61.23)
CIE-LCHlch(32.48, 73.47, 303.56°)
OKLaboklab(43.53% 0.0375 -0.1763)
OKLCHoklch(43.53% 0.18 282)
XYZxyz(11.8221, 7.3004, 41.3353)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4838AF #9FAF38
analogous
#3864AF #4838AF #8338AF
triadic
#4838AF #AF4838 #38AF48
tetradic
#4838AF #AF3864 #9FAF38 #38AF83
square
#4838AF #AF3864 #9FAF38 #38AF83
split-complementary
#4838AF #AF8338 #64AF38
monochromatic
#221A52 #352981 #4838AF #695ACA #9388D9

Accessibility & contrast

On white

8.54
#4838AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#4838AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4838AF
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4838AF#FFFFFF#000000##FFFFFF
##4838AF1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0048AD
Tritanopia (blue-blind)
#06576F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #4838af;
/* rgb */ color: rgb(72, 56, 175);
/* oklch */ color: oklch(43.5% 0.180 282.0);
Tailwind
colors: {
  custom: {
    50: '#8670c8',
    500: '#4838af',
    950: '#000000',
  },
}
SCSS
$custom: #4838af;
$custom-light: #8670c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4838af",
  "rgb": {
    "r": 72,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 248.067,
    "s": 51.515,
    "l": 45.294
  },
  "oklch": {
    "l": 0.43528,
    "c": 0.18019,
    "h": 282
  },
  "luminance": 0.07301
}

Semantic roles & 50–950 ramp

primary
#4838AF
secondary
#BAC380
accent
#DB4DC8
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0C0713
muted
#7D7A82

Preview Lab

Preview with #4838AF

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

Preview Lab → · Contrast checker → · Palette generator →

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