#3F28B2#3F28B2

#3F28B2 is a dark, highly saturated violet. Relative luminance 0.058; OKLCH L 40.9% C 0.202 H 280.2°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#3F28B2
RGBrgb(63, 40, 178)
HSLhsl(250, 63%, 43%)
HSVhsv(250, 78%, 70%)
CMYKcmyk(64.6%, 77.5%, 0%, 30.2%)
CIE-LABlab(28.87, 49.08, -68.98)
CIE-LCHlch(28.87, 84.66, 305.43°)
OKLaboklab(40.86% 0.0357 -0.1991)
OKLCHoklch(40.86% 0.202 280.2)
XYZxyz(10.8420, 5.7878, 42.6567)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F28B2 #9BB228
analogous
#2856B2 #3F28B2 #8428B2
triadic
#3F28B2 #B23F28 #28B23F
tetradic
#3F28B2 #B22856 #9BB228 #28B284
square
#3F28B2 #B22856 #9BB228 #28B284
split-complementary
#3F28B2 #B28428 #56B228
monochromatic
#1C124E #2D1D80 #3F28B2 #5B43D5 #8675E0

Accessibility & contrast

On white

9.73
#3F28B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3F28B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F28B2
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F28B2#FFFFFF#000000##FFFFFF
##3F28B21.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3f28b2;
/* rgb */ color: rgb(63, 40, 178);
/* oklch */ color: oklch(40.9% 0.202 280.2);
Tailwind
colors: {
  custom: {
    50: '#8366ca',
    500: '#3f28b2',
    950: '#000000',
  },
}
SCSS
$custom: #3f28b2;
$custom-light: #8366ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3f28b2",
  "rgb": {
    "r": 63,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 250,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40859,
    "c": 0.20229,
    "h": 280.2
  },
  "luminance": 0.05789
}

Semantic roles & 50–950 ramp

primary
#3F28B2
secondary
#B8C76F
accent
#E641CB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3F28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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