#3B228F#3B228F

#3B228F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.167 H 285.0°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#3B228F
RGBrgb(59, 34, 143)
HSLhsl(254, 62%, 35%)
HSVhsv(254, 76%, 56%)
CMYKcmyk(58.7%, 76.2%, 0%, 43.9%)
CIE-LABlab(23.86, 41.05, -55.96)
CIE-LCHlch(23.86, 69.40, 306.26°)
OKLaboklab(36.18% 0.043 -0.1612)
OKLCHoklch(36.18% 0.167 285)
XYZxyz(7.3321, 4.0566, 26.3779)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B228F #768F22
analogous
#22408F #3B228F #71228F
triadic
#3B228F #8F3B22 #228F3B
tetradic
#3B228F #8F2240 #768F22 #228F71
square
#3B228F #8F2240 #768F22 #228F71
split-complementary
#3B228F #8F7122 #408F22
monochromatic
#120A2C #27165E #3B228F #4F2EC0 #7355D7

Accessibility & contrast

On white

11.59
#3B228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3B228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B228F
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B228F#FFFFFF#000000##FFFFFF
##3B228F1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00358D
Tritanopia (blue-blind)
#0E4057
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3b228f;
/* rgb */ color: rgb(59, 34, 143);
/* oklch */ color: oklch(36.2% 0.167 285.0);
Tailwind
colors: {
  custom: {
    50: '#7b60b1',
    500: '#3b228f',
    950: '#000000',
  },
}
SCSS
$custom: #3b228f;
$custom-light: #7b60b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b228f",
  "rgb": {
    "r": 59,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 253.761,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36181,
    "c": 0.16681,
    "h": 285
  },
  "luminance": 0.04057
}

Semantic roles & 50–950 ramp

primary
#3B228F
secondary
#A3BA52
accent
#E543C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3B228F

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

Preview Lab → · Contrast checker → · Palette generator →

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