#3F27B2#3F27B2

#3F27B2 is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 40.7% C 0.203 H 280.3°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#3F27B2
RGBrgb(63, 39, 178)
HSLhsl(250, 64%, 43%)
HSVhsv(250, 78%, 70%)
CMYKcmyk(64.6%, 78.1%, 0%, 30.2%)
CIE-LABlab(28.70, 49.58, -69.26)
CIE-LCHlch(28.70, 85.18, 305.59°)
OKLaboklab(40.74% 0.0363 -0.1999)
OKLCHoklch(40.74% 0.203 280.3)
XYZxyz(10.8087, 5.7213, 42.6456)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F27B2 #9AB227
analogous
#2754B2 #3F27B2 #8527B2
triadic
#3F27B2 #B23F27 #27B23F
tetradic
#3F27B2 #B22754 #9AB227 #27B285
square
#3F27B2 #B22754 #9AB227 #27B285
split-complementary
#3F27B2 #B28527 #54B227
monochromatic
#1B114E #2D1C80 #3F27B2 #5A41D5 #8673E0

Accessibility & contrast

On white

9.79
#3F27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#3F27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F27B2
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F27B2#FFFFFF#000000##FFFFFF
##3F27B21.009.792.149.79
#FFFFFF9.791.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f27b2;
/* rgb */ color: rgb(63, 39, 178);
/* oklch */ color: oklch(40.7% 0.203 280.3);
Tailwind
colors: {
  custom: {
    50: '#8465ca',
    500: '#3f27b2',
    950: '#000000',
  },
}
SCSS
$custom: #3f27b2;
$custom-light: #8465ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3f27b2",
  "rgb": {
    "r": 63,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 250.36,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40738,
    "c": 0.2032,
    "h": 280.3
  },
  "luminance": 0.05722
}

Semantic roles & 50–950 ramp

primary
#3F27B2
secondary
#B8C86D
accent
#E741CA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #3F27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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