#4128B7#4128B7

#4128B7 is a dark, highly saturated violet. Relative luminance 0.061; OKLCH L 41.5% C 0.208 H 280.3°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#4128B7
RGBrgb(65, 40, 183)
HSLhsl(250, 64%, 44%)
HSVhsv(250, 78%, 72%)
CMYKcmyk(64.5%, 78.1%, 0%, 28.2%)
CIE-LABlab(29.56, 50.79, -70.81)
CIE-LCHlch(29.56, 87.14, 305.65°)
OKLaboklab(41.54% 0.0373 -0.2044)
OKLCHoklch(41.54% 0.208 280.3)
XYZxyz(11.4833, 6.0594, 45.3550)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128B7 #9EB728
analogous
#2856B7 #4128B7 #8828B7
triadic
#4128B7 #B74128 #28B741
tetradic
#4128B7 #B72856 #9EB728 #28B788
square
#4128B7 #B72856 #9EB728 #28B788
split-complementary
#4128B7 #B78828 #56B728
monochromatic
#1D1253 #2F1D85 #4128B7 #5F46D6 #8A78E1

Accessibility & contrast

On white

9.49
#4128B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#4128B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4128B7#FFFFFF#000000##FFFFFF
##4128B71.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBB
Deuteranopia (green-blind)
#0040B4
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #4128b7;
/* rgb */ color: rgb(65, 40, 183);
/* oklch */ color: oklch(41.5% 0.208 280.3);
Tailwind
colors: {
  custom: {
    50: '#8566ce',
    500: '#4128b7',
    950: '#000000',
  },
}
SCSS
$custom: #4128b7;
$custom-light: #8566ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4128b7",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 183
  },
  "hsl": {
    "h": 250.49,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41539,
    "c": 0.20777,
    "h": 280.3
  },
  "luminance": 0.0606
}

Semantic roles & 50–950 ramp

primary
#4128B7
secondary
#BAC972
accent
#E741CA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0D0614
muted
#7D7A82

Preview Lab

Preview with #4128B7

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

Preview Lab → · Contrast checker → · Palette generator →

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