#3F238F#3F238F

#3F238F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.165 H 287.0°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#3F238F
RGBrgb(63, 35, 143)
HSLhsl(256, 61%, 35%)
HSVhsv(256, 76%, 56%)
CMYKcmyk(55.9%, 75.5%, 0%, 43.9%)
CIE-LABlab(24.45, 41.10, -54.96)
CIE-LCHlch(24.45, 68.63, 306.79°)
OKLaboklab(36.7% 0.0484 -0.1581)
OKLCHoklch(36.7% 0.165 287)
XYZxyz(7.6074, 4.2416, 26.3991)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F238F #738F23
analogous
#233D8F #3F238F #75238F
triadic
#3F238F #8F3F23 #238F3F
tetradic
#3F238F #8F233D #738F23 #238F75
square
#3F238F #8F233D #738F23 #238F75
split-complementary
#3F238F #8F7523 #3D8F23
monochromatic
#140B2D #29175E #3F238F #552FC0 #7857D6

Accessibility & contrast

On white

11.36
#3F238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3F238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F238F
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F238F#FFFFFF#000000##FFFFFF
##3F238F1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#1D4157
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3f238f;
/* rgb */ color: rgb(63, 35, 143);
/* oklch */ color: oklch(36.7% 0.165 287.0);
Tailwind
colors: {
  custom: {
    50: '#7d61b1',
    500: '#3f238f',
    950: '#000000',
  },
}
SCSS
$custom: #3f238f;
$custom-light: #7d61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3f238f",
  "rgb": {
    "r": 63,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 255.556,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.367,
    "c": 0.16536,
    "h": 287
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#3F238F
secondary
#9FBA54
accent
#E444BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3F238F

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

Preview Lab → · Contrast checker → · Palette generator →

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