#4128AA#4128AA

#4128AA is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.2% C 0.193 H 282.2°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#4128AA
RGBrgb(65, 40, 170)
HSLhsl(252, 62%, 41%)
HSVhsv(252, 76%, 67%)
CMYKcmyk(61.8%, 76.5%, 0%, 33.3%)
CIE-LABlab(28.23, 46.90, -65.24)
CIE-LCHlch(28.23, 80.35, 305.71°)
OKLaboklab(40.21% 0.0408 -0.1881)
OKLCHoklch(40.21% 0.193 282.2)
XYZxyz(10.1922, 5.5430, 38.5552)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128AA #91AA28
analogous
#2850AA #4128AA #8228AA
triadic
#4128AA #AA4128 #28AA41
tetradic
#4128AA #AA2850 #91AA28 #28AA82
square
#4128AA #AA2850 #91AA28 #28AA82
split-complementary
#4128AA #AA8228 #50AA28
monochromatic
#1B1147 #2E1C78 #4128AA #5A3ED2 #846FDD

Accessibility & contrast

On white

9.96
#4128AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#4128AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4128AA#FFFFFF#000000##FFFFFF
##4128AA1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#003EA8
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4128aa;
/* rgb */ color: rgb(65, 40, 170);
/* oklch */ color: oklch(40.2% 0.193 282.2);
Tailwind
colors: {
  custom: {
    50: '#8365c4',
    500: '#4128aa',
    950: '#000000',
  },
}
SCSS
$custom: #4128aa;
$custom-light: #8365c4;
$custom-dark: #000000;
JSON
{
  "hex": "#4128aa",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 251.538,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40208,
    "c": 0.1925,
    "h": 282.2
  },
  "luminance": 0.05544
}

Semantic roles & 50–950 ramp

primary
#4128AA
secondary
#B3C46A
accent
#E543C6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4128AA

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

Preview Lab → · Contrast checker → · Palette generator →

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