#4127A8#4127A8

#4127A8 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.191 H 282.7°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#4127A8
RGBrgb(65, 39, 168)
HSLhsl(252, 62%, 41%)
HSVhsv(252, 77%, 66%)
CMYKcmyk(61.3%, 76.8%, 0%, 34.1%)
CIE-LABlab(27.85, 46.81, -64.66)
CIE-LCHlch(27.85, 79.83, 305.90°)
OKLaboklab(39.88% 0.0419 -0.1864)
OKLCHoklch(39.88% 0.191 282.7)
XYZxyz(9.9712, 5.4013, 37.5553)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4127A8 #8EA827
analogous
#274DA8 #4127A8 #8127A8
triadic
#4127A8 #A84127 #27A841
tetradic
#4127A8 #A8274D #8EA827 #27A881
square
#4127A8 #A8274D #8EA827 #27A881
split-complementary
#4127A8 #A88127 #4DA827
monochromatic
#1B1045 #2E1B76 #4127A8 #593BD1 #836CDD

Accessibility & contrast

On white

10.09
#4127A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#4127A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4127A8
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4127A8#FFFFFF#000000##FFFFFF
##4127A81.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AC
Deuteranopia (green-blind)
#003DA6
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4127a8;
/* rgb */ color: rgb(65, 39, 168);
/* oklch */ color: oklch(39.9% 0.191 282.7);
Tailwind
colors: {
  custom: {
    50: '#8365c3',
    500: '#4127a8',
    950: '#000000',
  },
}
SCSS
$custom: #4127a8;
$custom-light: #8365c3;
$custom-dark: #000000;
JSON
{
  "hex": "#4127a8",
  "rgb": {
    "r": 65,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 252.093,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39881,
    "c": 0.1911,
    "h": 282.7
  },
  "luminance": 0.05402
}

Semantic roles & 50–950 ramp

primary
#4127A8
secondary
#B1C367
accent
#E542C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #4127A8

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

Preview Lab → · Contrast checker → · Palette generator →

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