#4128AB#4128AB

#4128AB is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.194 H 282.1°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#4128AB
RGBrgb(65, 40, 171)
HSLhsl(251, 62%, 41%)
HSVhsv(251, 77%, 67%)
CMYKcmyk(62%, 76.6%, 0%, 32.9%)
CIE-LABlab(28.33, 47.21, -65.67)
CIE-LCHlch(28.33, 80.88, 305.71°)
OKLaboklab(40.31% 0.0405 -0.1894)
OKLCHoklch(40.31% 0.194 282.1)
XYZxyz(10.2872, 5.5809, 39.0553)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128AB #92AB28
analogous
#2851AB #4128AB #8328AB
triadic
#4128AB #AB4128 #28AB41
tetradic
#4128AB #AB2851 #92AB28 #28AB83
square
#4128AB #AB2851 #92AB28 #28AB83
split-complementary
#4128AB #AB8328 #51AB28
monochromatic
#1B1148 #2E1C79 #4128AB #5A3ED2 #8570DE

Accessibility & contrast

On white

9.92
#4128AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4128AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4128AB#FFFFFF#000000##FFFFFF
##4128AB1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4128ab;
/* rgb */ color: rgb(65, 40, 171);
/* oklch */ color: oklch(40.3% 0.194 282.1);
Tailwind
colors: {
  custom: {
    50: '#8366c5',
    500: '#4128ab',
    950: '#000000',
  },
}
SCSS
$custom: #4128ab;
$custom-light: #8366c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4128ab",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 251.45,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40309,
    "c": 0.19369,
    "h": 282.1
  },
  "luminance": 0.05582
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4128AB

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

Preview Lab → · Contrast checker → · Palette generator →

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