#4128A2#4128A2

#4128A2 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.4% C 0.183 H 283.5°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#4128A2
RGBrgb(65, 40, 162)
HSLhsl(252, 60%, 40%)
HSVhsv(252, 75%, 64%)
CMYKcmyk(59.9%, 75.3%, 0%, 36.5%)
CIE-LABlab(27.43, 44.49, -61.71)
CIE-LCHlch(27.43, 76.08, 305.79°)
OKLaboklab(39.41% 0.0428 -0.1778)
OKLCHoklch(39.41% 0.183 283.5)
XYZxyz(9.4583, 5.2494, 34.6902)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128A2 #89A228
analogous
#284CA2 #4128A2 #7E28A2
triadic
#4128A2 #A24128 #28A241
tetradic
#4128A2 #A2284C #89A228 #28A27E
square
#4128A2 #A2284C #89A228 #28A27E
split-complementary
#4128A2 #A27E28 #4CA228
monochromatic
#1A1040 #2D1C71 #4128A2 #5839CE #816ADA

Accessibility & contrast

On white

10.24
#4128A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#4128A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4128A2
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4128A2#FFFFFF#000000##FFFFFF
##4128A21.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A6
Deuteranopia (green-blind)
#003DA0
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4128a2;
/* rgb */ color: rgb(65, 40, 162);
/* oklch */ color: oklch(39.4% 0.183 283.5);
Tailwind
colors: {
  custom: {
    50: '#8165bf',
    500: '#4128a2',
    950: '#000000',
  },
}
SCSS
$custom: #4128a2;
$custom-light: #8165bf;
$custom-dark: #000000;
JSON
{
  "hex": "#4128a2",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 252.295,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39409,
    "c": 0.18292,
    "h": 283.5
  },
  "luminance": 0.0525
}

Semantic roles & 50–950 ramp

primary
#4128A2
secondary
#AEC165
accent
#E444C3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4128A2

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

Preview Lab → · Contrast checker → · Palette generator →

#4128A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva