#4B408C#4B408C

#4B408C is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.3% C 0.121 H 286.6°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#4B408C
RGBrgb(75, 64, 140)
HSLhsl(249, 37%, 40%)
HSVhsv(249, 54%, 55%)
CMYKcmyk(46.4%, 54.3%, 0%, 45.1%)
CIE-LABlab(31.93, 25.17, -40.91)
CIE-LCHlch(31.93, 48.03, 301.60°)
OKLaboklab(42.35% 0.0348 -0.1164)
OKLCHoklch(42.35% 0.122 286.6)
XYZxyz(9.4673, 7.0557, 25.6689)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B408C #818C40
analogous
#405B8C #4B408C #71408C
triadic
#4B408C #8C4B40 #408C4B
tetradic
#4B408C #8C405B #818C40 #408C71
square
#4B408C #8C405B #818C40 #408C71
split-complementary
#4B408C #8C7140 #5B8C40
monochromatic
#1E1A38 #342D62 #4B408C #6457B2 #8B81C5

Accessibility & contrast

On white

8.71
#4B408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4B408C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B408C
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B408C#FFFFFF#000000##FFFFFF
##4B408C1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4D8F
Deuteranopia (green-blind)
#1A498A
Tritanopia (blue-blind)
#36505F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4b408c;
/* rgb */ color: rgb(75, 64, 140);
/* oklch */ color: oklch(42.3% 0.121 286.6);
Tailwind
colors: {
  custom: {
    50: '#8275ae',
    500: '#4b408c',
    950: '#000000',
  },
}
SCSS
$custom: #4b408c;
$custom-light: #8275ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4b408c",
  "rgb": {
    "r": 75,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 248.684,
    "s": 37.255,
    "l": 40
  },
  "oklch": {
    "l": 0.42345,
    "c": 0.1215,
    "h": 286.6
  },
  "luminance": 0.07056
}

Semantic roles & 50–950 ramp

primary
#4B408C
secondary
#A8B078
accent
#CD5BBD
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #4B408C

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

Preview Lab → · Contrast checker → · Palette generator →

#4B408C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva