#3F229B#3F229B

#3F229B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.8% C 0.181 H 284.7°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#3F229B
RGBrgb(63, 34, 155)
HSLhsl(254, 64%, 37%)
HSVhsv(254, 78%, 61%)
CMYKcmyk(59.4%, 78.1%, 0%, 39.2%)
CIE-LABlab(25.46, 45.20, -60.70)
CIE-LCHlch(25.46, 75.68, 306.67°)
OKLaboklab(37.77% 0.0459 -0.1749)
OKLCHoklch(37.77% 0.181 284.7)
XYZxyz(8.5365, 4.5668, 31.4357)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F229B #7E9B22
analogous
#22429B #3F229B #7C229B
triadic
#3F229B #9B3F22 #229B3F
tetradic
#3F229B #9B2242 #7E9B22 #229B7C
square
#3F229B #9B2242 #7E9B22 #229B7C
split-complementary
#3F229B #9B7C22 #429B22
monochromatic
#160C37 #2B1769 #3F229B #532DCD #7B5CDB

Accessibility & contrast

On white

10.98
#3F229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3F229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F229B
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F229B#FFFFFF#000000##FFFFFF
##3F229B1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#09455E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3f229b;
/* rgb */ color: rgb(63, 34, 155);
/* oklch */ color: oklch(37.8% 0.181 284.7);
Tailwind
colors: {
  custom: {
    50: '#8061ba',
    500: '#3f229b',
    950: '#000000',
  },
}
SCSS
$custom: #3f229b;
$custom-light: #8061ba;
$custom-dark: #000000;
JSON
{
  "hex": "#3f229b",
  "rgb": {
    "r": 63,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 254.38,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37768,
    "c": 0.1808,
    "h": 284.7
  },
  "luminance": 0.04567
}

Semantic roles & 50–950 ramp

primary
#3F229B
secondary
#A7C059
accent
#E741BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3F229B

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

Preview Lab → · Contrast checker → · Palette generator →

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