#4628AB#4628AB

#4628AB is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.193 H 284.4°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#4628AB
RGBrgb(70, 40, 171)
HSLhsl(254, 62%, 41%)
HSVhsv(254, 77%, 67%)
CMYKcmyk(59.1%, 76.6%, 0%, 32.9%)
CIE-LABlab(28.80, 47.83, -64.89)
CIE-LCHlch(28.80, 80.61, 306.40°)
OKLaboklab(40.75% 0.0479 -0.187)
OKLCHoklch(40.75% 0.193 284.4)
XYZxyz(10.6330, 5.7593, 39.0715)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4628AB #8DAB28
analogous
#284CAB #4628AB #8828AB
triadic
#4628AB #AB4628 #28AB46
tetradic
#4628AB #AB284C #8DAB28 #28AB88
square
#4628AB #AB284C #8DAB28 #28AB88
split-complementary
#4628AB #AB8828 #4CAB28
monochromatic
#1D1148 #321C79 #4628AB #603ED2 #8970DE

Accessibility & contrast

On white

9.76
#4628AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4628AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4628AB
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4628AB#FFFFFF#000000##FFFFFF
##4628AB1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048AF
Deuteranopia (green-blind)
#0040A9
Tritanopia (blue-blind)
#084D68
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4628ab;
/* rgb */ color: rgb(70, 40, 171);
/* oklch */ color: oklch(40.8% 0.193 284.4);
Tailwind
colors: {
  custom: {
    50: '#8666c5',
    500: '#4628ab',
    950: '#000000',
  },
}
SCSS
$custom: #4628ab;
$custom-light: #8666c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4628ab",
  "rgb": {
    "r": 70,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 253.74,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40751,
    "c": 0.193,
    "h": 284.4
  },
  "luminance": 0.0576
}

Semantic roles & 50–950 ramp

primary
#4628AB
secondary
#B0C46A
accent
#E543C0
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4628AB

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

Preview Lab → · Contrast checker → · Palette generator →

#4628AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva