#4128AF#4128AF

#4128AF is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.198 H 281.5°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#4128AF
RGBrgb(65, 40, 175)
HSLhsl(251, 63%, 42%)
HSVhsv(251, 77%, 69%)
CMYKcmyk(62.9%, 77.1%, 0%, 31.4%)
CIE-LABlab(28.74, 48.41, -67.40)
CIE-LCHlch(28.74, 82.98, 305.68°)
OKLaboklab(40.72% 0.0394 -0.1945)
OKLCHoklch(40.72% 0.198 281.5)
XYZxyz(10.6742, 5.7358, 41.0937)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128AF #96AF28
analogous
#2853AF #4128AF #8528AF
triadic
#4128AF #AF4128 #28AF41
tetradic
#4128AF #AF2853 #96AF28 #28AF85
square
#4128AF #AF2853 #96AF28 #28AF85
split-complementary
#4128AF #AF8528 #53AF28
monochromatic
#1C114B #2E1D7D #4128AF #5C41D4 #8773DF

Accessibility & contrast

On white

9.78
#4128AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#4128AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4128AF#FFFFFF#000000##FFFFFF
##4128AF1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B3
Deuteranopia (green-blind)
#003FAD
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4128af;
/* rgb */ color: rgb(65, 40, 175);
/* oklch */ color: oklch(40.7% 0.198 281.5);
Tailwind
colors: {
  custom: {
    50: '#8466c8',
    500: '#4128af',
    950: '#000000',
  },
}
SCSS
$custom: #4128af;
$custom-light: #8466c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4128af",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 251.111,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40715,
    "c": 0.19842,
    "h": 281.5
  },
  "luminance": 0.05737
}

Semantic roles & 50–950 ramp

primary
#4128AF
secondary
#B6C66D
accent
#E642C7
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4128AF

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

Preview Lab → · Contrast checker → · Palette generator →

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