#3F28A3#3F28A3

#3F28A3 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.3% C 0.184 H 282.4°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#3F28A3
RGBrgb(63, 40, 163)
HSLhsl(251, 61%, 40%)
HSVhsv(251, 75%, 64%)
CMYKcmyk(61.3%, 75.5%, 0%, 36.1%)
CIE-LABlab(27.35, 44.53, -62.47)
CIE-LCHlch(27.35, 76.71, 305.48°)
OKLaboklab(39.33% 0.0396 -0.1801)
OKLCHoklch(39.33% 0.184 282.4)
XYZxyz(9.4175, 5.2180, 35.1542)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F28A3 #8CA328
analogous
#284EA3 #3F28A3 #7D28A3
triadic
#3F28A3 #A33F28 #28A33F
tetradic
#3F28A3 #A3284E #8CA328 #28A37D
square
#3F28A3 #A3284E #8CA328 #28A37D
split-complementary
#3F28A3 #A37D28 #4EA328
monochromatic
#191041 #2C1C72 #3F28A3 #553ACF #806BDB

Accessibility & contrast

On white

10.27
#3F28A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#3F28A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F28A3
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F28A3#FFFFFF#000000##FFFFFF
##3F28A31.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A7
Deuteranopia (green-blind)
#003CA1
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3f28a3;
/* rgb */ color: rgb(63, 40, 163);
/* oklch */ color: oklch(39.3% 0.184 282.4);
Tailwind
colors: {
  custom: {
    50: '#8165bf',
    500: '#3f28a3',
    950: '#000000',
  },
}
SCSS
$custom: #3f28a3;
$custom-light: #8165bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f28a3",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 251.22,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39333,
    "c": 0.18441,
    "h": 282.4
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#3F28A3
secondary
#B0C166
accent
#E444C6
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3F28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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