#4127B4#4127B4

#4127B4 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.1% C 0.205 H 280.9°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#4127B4
RGBrgb(65, 39, 180)
HSLhsl(251, 64%, 43%)
HSVhsv(251, 78%, 71%)
CMYKcmyk(63.9%, 78.3%, 0%, 29.4%)
CIE-LABlab(29.08, 50.39, -69.82)
CIE-LCHlch(29.08, 86.10, 305.82°)
OKLaboklab(41.11% 0.0386 -0.2015)
OKLCHoklch(41.11% 0.205 280.9)
XYZxyz(11.1411, 5.8693, 43.7170)
Luminance0.0587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127B4 #9AB427
analogous
#2753B4 #4127B4 #8827B4
triadic
#4127B4 #B44127 #27B441
tetradic
#4127B4 #B42753 #9AB427 #27B488
square
#4127B4 #B42753 #9AB427 #27B488
split-complementary
#4127B4 #B48827 #53B427
monochromatic
#1D114F #2F1C82 #4127B4 #5D42D6 #8874E1

Accessibility & contrast

On white

9.66
#4127B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#4127B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127B4
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127B4#FFFFFF#000000##FFFFFF
##4127B41.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#003FB2
Tritanopia (blue-blind)
#00516D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #4127b4;
/* rgb */ color: rgb(65, 39, 180);
/* oklch */ color: oklch(41.1% 0.205 280.9);
Tailwind
colors: {
  custom: {
    50: '#8565cc',
    500: '#4127b4',
    950: '#000000',
  },
}
SCSS
$custom: #4127b4;
$custom-light: #8565cc;
$custom-dark: #000000;
JSON
{
  "hex": "#4127b4",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 180
  },
  "hsl": {
    "h": 251.064,
    "s": 64.384,
    "l": 42.941
  },
  "oklch": {
    "l": 0.4111,
    "c": 0.20517,
    "h": 280.9
  },
  "luminance": 0.0587
}

Semantic roles & 50–950 ramp

primary
#4127B4
secondary
#B8C86F
accent
#E740C9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #4127B4

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

Preview Lab → · Contrast checker → · Palette generator →

#4127B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva