#3B239F#3B239F

#3B239F is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.185 H 281.9°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#3B239F
RGBrgb(59, 35, 159)
HSLhsl(252, 64%, 38%)
HSVhsv(252, 78%, 62%)
CMYKcmyk(62.9%, 78%, 0%, 37.6%)
CIE-LABlab(25.67, 45.40, -62.82)
CIE-LCHlch(25.67, 77.51, 305.86°)
OKLaboklab(37.94% 0.038 -0.1812)
OKLCHoklch(37.94% 0.185 281.9)
XYZxyz(8.6607, 4.6344, 33.2323)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B239F #879F23
analogous
#23499F #3B239F #79239F
triadic
#3B239F #9F3B23 #239F3B
tetradic
#3B239F #9F2349 #879F23 #239F79
square
#3B239F #9F2349 #879F23 #239F79
split-complementary
#3B239F #9F7923 #499F23
monochromatic
#160D3B #28186D #3B239F #4E2ED1 #7860DC

Accessibility & contrast

On white

10.90
#3B239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3B239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B239F
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B239F#FFFFFF#000000##FFFFFF
##3B239F1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3b239f;
/* rgb */ color: rgb(59, 35, 159);
/* oklch */ color: oklch(37.9% 0.185 281.9);
Tailwind
colors: {
  custom: {
    50: '#7e62bd',
    500: '#3b239f',
    950: '#000000',
  },
}
SCSS
$custom: #3b239f;
$custom-light: #7e62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3b239f",
  "rgb": {
    "r": 59,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 251.613,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3794,
    "c": 0.18516,
    "h": 281.9
  },
  "luminance": 0.04635
}

Semantic roles & 50–950 ramp

primary
#3B239F
secondary
#AEC15D
accent
#E741C7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3B239F

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

Preview Lab → · Contrast checker → · Palette generator →

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