#3B255E#3B255E

#3B255E is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.3% C 0.098 H 298.6°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#3B255E
RGBrgb(59, 37, 94)
HSLhsl(263, 44%, 26%)
HSVhsv(263, 61%, 37%)
CMYKcmyk(37.2%, 60.6%, 0%, 63.1%)
CIE-LABlab(20.29, 24.27, -30.42)
CIE-LCHlch(20.29, 38.92, 308.59°)
OKLaboklab(32.3% 0.0469 -0.0862)
OKLCHoklch(32.3% 0.098 298.6)
XYZxyz(4.4851, 3.0610, 10.9420)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B255E #485E25
analogous
#252B5E #3B255E #57255E
triadic
#3B255E #5E3B25 #255E3B
tetradic
#3B255E #5E252B #485E25 #255E57
square
#3B255E #5E252B #485E25 #255E57
split-complementary
#3B255E #5E5725 #2B5E25
monochromatic
#0E0916 #1F1432 #3B255E #57368A #7248B6

Accessibility & contrast

On white

13.03
#3B255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3B255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B255E
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B255E#FFFFFF#000000##FFFFFF
##3B255E1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3160
Deuteranopia (green-blind)
#13305D
Tritanopia (blue-blind)
#33313D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3b255e;
/* rgb */ color: rgb(59, 37, 94);
/* oklch */ color: oklch(32.3% 0.098 298.6);
Tailwind
colors: {
  custom: {
    50: '#74608c',
    500: '#3b255e',
    950: '#000000',
  },
}
SCSS
$custom: #3b255e;
$custom-light: #74608c;
$custom-dark: #000000;
JSON
{
  "hex": "#3b255e",
  "rgb": {
    "r": 59,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 263.158,
    "s": 43.511,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32304,
    "c": 0.09814,
    "h": 298.6
  },
  "luminance": 0.03061
}

Semantic roles & 50–950 ramp

primary
#3B255E
secondary
#77914D
accent
#D355A2
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050C
muted
#7B797D

Preview Lab

Preview with #3B255E

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

Preview Lab → · Contrast checker → · Palette generator →

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