#3F28AA#3F28AA

#3F28AA is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.0% C 0.193 H 281.3°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#3F28AA
RGBrgb(63, 40, 170)
HSLhsl(251, 62%, 41%)
HSVhsv(251, 76%, 67%)
CMYKcmyk(62.9%, 76.5%, 0%, 33.3%)
CIE-LABlab(28.05, 46.66, -65.54)
CIE-LCHlch(28.05, 80.45, 305.45°)
OKLaboklab(40.04% 0.0378 -0.1891)
OKLCHoklch(40.04% 0.193 281.3)
XYZxyz(10.0621, 5.4759, 38.5491)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F28AA #93AA28
analogous
#2852AA #3F28AA #8028AA
triadic
#3F28AA #AA3F28 #28AA3F
tetradic
#3F28AA #AA2852 #93AA28 #28AA80
square
#3F28AA #AA2852 #93AA28 #28AA80
split-complementary
#3F28AA #AA8028 #52AA28
monochromatic
#1A1147 #2D1C78 #3F28AA #583ED2 #836FDD

Accessibility & contrast

On white

10.02
#3F28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#3F28AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F28AA
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F28AA#FFFFFF#000000##FFFFFF
##3F28AA1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AE
Deuteranopia (green-blind)
#003DA8
Tritanopia (blue-blind)
#004D68
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3f28aa;
/* rgb */ color: rgb(63, 40, 170);
/* oklch */ color: oklch(40.0% 0.193 281.3);
Tailwind
colors: {
  custom: {
    50: '#8265c5',
    500: '#3f28aa',
    950: '#000000',
  },
}
SCSS
$custom: #3f28aa;
$custom-light: #8265c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3f28aa",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 250.615,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40038,
    "c": 0.19283,
    "h": 281.3
  },
  "luminance": 0.05477
}

Semantic roles & 50–950 ramp

primary
#3F28AA
secondary
#B4C46A
accent
#E543C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3F28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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