#3F28AE#3F28AE

#3F28AE is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.198 H 280.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#3F28AE
RGBrgb(63, 40, 174)
HSLhsl(250, 63%, 42%)
HSVhsv(250, 77%, 68%)
CMYKcmyk(63.8%, 77%, 0%, 31.8%)
CIE-LABlab(28.46, 47.87, -67.27)
CIE-LCHlch(28.46, 82.57, 305.44°)
OKLaboklab(40.45% 0.0368 -0.1941)
OKLCHoklch(40.45% 0.198 280.7)
XYZxyz(10.4463, 5.6295, 40.5723)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F28AE #97AE28
analogous
#2854AE #3F28AE #8228AE
triadic
#3F28AE #AE3F28 #28AE3F
tetradic
#3F28AE #AE2854 #97AE28 #28AE82
square
#3F28AE #AE2854 #97AE28 #28AE82
split-complementary
#3F28AE #AE8228 #54AE28
monochromatic
#1B114A #2D1D7C #3F28AE #5940D3 #8572DF

Accessibility & contrast

On white

9.88
#3F28AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#3F28AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F28AE
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F28AE#FFFFFF#000000##FFFFFF
##3F28AE1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B2
Deuteranopia (green-blind)
#003EAC
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3f28ae;
/* rgb */ color: rgb(63, 40, 174);
/* oklch */ color: oklch(40.4% 0.198 280.7);
Tailwind
colors: {
  custom: {
    50: '#8366c7',
    500: '#3f28ae',
    950: '#000000',
  },
}
SCSS
$custom: #3f28ae;
$custom-light: #8366c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3f28ae",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 174
  },
  "hsl": {
    "h": 250.299,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40447,
    "c": 0.19757,
    "h": 280.7
  },
  "luminance": 0.0563
}

Semantic roles & 50–950 ramp

primary
#3F28AE
secondary
#B6C66C
accent
#E642CA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3F28AE

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

Preview Lab → · Contrast checker → · Palette generator →

#3F28AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva