#4128B2#4128B2

#4128B2 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.0% C 0.202 H 281.0°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#4128B2
RGBrgb(65, 40, 178)
HSLhsl(251, 63%, 43%)
HSVhsv(251, 78%, 70%)
CMYKcmyk(63.5%, 77.5%, 0%, 30.2%)
CIE-LABlab(29.04, 49.30, -68.69)
CIE-LCHlch(29.04, 84.55, 305.67°)
OKLaboklab(41.02% 0.0386 -0.1982)
OKLCHoklch(41.02% 0.202 281)
XYZxyz(10.9721, 5.8549, 42.6628)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4128B2 #99B228
analogous
#2854B2 #4128B2 #8628B2
triadic
#4128B2 #B24128 #28B241
tetradic
#4128B2 #B22854 #99B228 #28B286
square
#4128B2 #B22854 #99B228 #28B286
split-complementary
#4128B2 #B28628 #54B228
monochromatic
#1D124E #2F1D80 #4128B2 #5D43D5 #8875E0

Accessibility & contrast

On white

9.67
#4128B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4128B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##4128B2#FFFFFF#000000##FFFFFF
##4128B21.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4128b2;
/* rgb */ color: rgb(65, 40, 178);
/* oklch */ color: oklch(41.0% 0.202 281.0);
Tailwind
colors: {
  custom: {
    50: '#8466ca',
    500: '#4128b2',
    950: '#000000',
  },
}
SCSS
$custom: #4128b2;
$custom-light: #8466ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4128b2",
  "rgb": {
    "r": 65,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 250.87,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41023,
    "c": 0.20194,
    "h": 281
  },
  "luminance": 0.05856
}

Semantic roles & 50–950 ramp

primary
#4128B2
secondary
#B7C76F
accent
#E641C8
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4128B2

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

Preview Lab → · Contrast checker → · Palette generator →

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