#3A268F#3A268F

#3A268F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.163 H 283.7°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#3A268F
RGBrgb(58, 38, 143)
HSLhsl(251, 58%, 35%)
HSVhsv(251, 73%, 56%)
CMYKcmyk(59.4%, 73.4%, 0%, 43.9%)
CIE-LABlab(24.54, 38.71, -54.84)
CIE-LCHlch(24.54, 67.12, 305.21°)
OKLaboklab(36.64% 0.0384 -0.1579)
OKLCHoklch(36.64% 0.163 283.7)
XYZxyz(7.3944, 4.2685, 26.4155)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A268F #7B8F26
analogous
#26468F #3A268F #6F268F
triadic
#3A268F #8F3A26 #268F3A
tetradic
#3A268F #8F2646 #7B8F26 #268F6F
square
#3A268F #8F2646 #7B8F26 #268F6F
split-complementary
#3A268F #8F6F26 #468F26
monochromatic
#130C2E #26195F #3A268F #4E33BF #735CD4

Accessibility & contrast

On white

11.33
#3A268F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A268F
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A268F#FFFFFF#000000##FFFFFF
##3A268F1.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a268f;
/* rgb */ color: rgb(58, 38, 143);
/* oklch */ color: oklch(36.6% 0.163 283.7);
Tailwind
colors: {
  custom: {
    50: '#7a62b1',
    500: '#3a268f',
    950: '#000000',
  },
}
SCSS
$custom: #3a268f;
$custom-light: #7a62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a268f",
  "rgb": {
    "r": 58,
    "g": 38,
    "b": 143
  },
  "hsl": {
    "h": 251.429,
    "s": 58.011,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3664,
    "c": 0.16254,
    "h": 283.7
  },
  "luminance": 0.04269
}

Semantic roles & 50–950 ramp

primary
#3A268F
secondary
#A6B958
accent
#E147C4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #3A268F

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

Preview Lab → · Contrast checker → · Palette generator →

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