#3A239F#3A239F

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

Color values

HEX#3A239F
RGBrgb(58, 35, 159)
HSLhsl(251, 64%, 38%)
HSVhsv(251, 78%, 62%)
CMYKcmyk(63.5%, 78%, 0%, 37.6%)
CIE-LABlab(25.58, 45.28, -62.97)
CIE-LCHlch(25.58, 77.56, 305.72°)
OKLaboklab(37.85% 0.0365 -0.1817)
OKLCHoklch(37.85% 0.185 281.4)
XYZxyz(8.6020, 4.6042, 33.2296)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A239F #889F23
analogous
#234A9F #3A239F #78239F
triadic
#3A239F #9F3A23 #239F3A
tetradic
#3A239F #9F234A #889F23 #239F78
square
#3A239F #9F234A #889F23 #239F78
split-complementary
#3A239F #9F7823 #4A9F23
monochromatic
#150D3B #28186D #3A239F #4C2ED1 #7760DC

Accessibility & contrast

On white

10.93
#3A239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#3A239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A239F
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A239F#FFFFFF#000000##FFFFFF
##3A239F1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.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: #3a239f;
/* rgb */ color: rgb(58, 35, 159);
/* oklch */ color: oklch(37.9% 0.185 281.4);
Tailwind
colors: {
  custom: {
    50: '#7e62bd',
    500: '#3a239f',
    950: '#000000',
  },
}
SCSS
$custom: #3a239f;
$custom-light: #7e62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3a239f",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 251.129,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37854,
    "c": 0.18532,
    "h": 281.4
  },
  "luminance": 0.04605
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A239F

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

Preview Lab → · Contrast checker → · Palette generator →

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