#3F28AF#3F28AF

#3F28AF is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.199 H 280.6°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#3F28AF
RGBrgb(63, 40, 175)
HSLhsl(250, 63%, 42%)
HSVhsv(250, 77%, 69%)
CMYKcmyk(64%, 77.1%, 0%, 31.4%)
CIE-LABlab(28.56, 48.18, -67.70)
CIE-LCHlch(28.56, 83.09, 305.44°)
OKLaboklab(40.55% 0.0365 -0.1954)
OKLCHoklch(40.55% 0.199 280.6)
XYZxyz(10.5441, 5.6687, 41.0876)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F28AF #98AF28
analogous
#2855AF #3F28AF #8328AF
triadic
#3F28AF #AF3F28 #28AF3F
tetradic
#3F28AF #AF2855 #98AF28 #28AF83
square
#3F28AF #AF2855 #98AF28 #28AF83
split-complementary
#3F28AF #AF8328 #55AF28
monochromatic
#1B114B #2D1D7D #3F28AF #5A41D4 #8573DF

Accessibility & contrast

On white

9.84
#3F28AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F28AF
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F28AF#FFFFFF#000000##FFFFFF
##3F28AF1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f28af;
/* rgb */ color: rgb(63, 40, 175);
/* oklch */ color: oklch(40.5% 0.199 280.6);
Tailwind
colors: {
  custom: {
    50: '#8366c8',
    500: '#3f28af',
    950: '#000000',
  },
}
SCSS
$custom: #3f28af;
$custom-light: #8366c8;
$custom-dark: #000000;
JSON
{
  "hex": "#3f28af",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 250.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40549,
    "c": 0.19876,
    "h": 280.6
  },
  "luminance": 0.05669
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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