#3A249E#3A249E

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

Color values

HEX#3A249E
RGBrgb(58, 36, 158)
HSLhsl(251, 63%, 38%)
HSVhsv(251, 77%, 62%)
CMYKcmyk(63.3%, 77.2%, 0%, 38%)
CIE-LABlab(25.65, 44.46, -62.24)
CIE-LCHlch(25.65, 76.49, 305.54°)
OKLaboklab(37.88% 0.0362 -0.1795)
OKLCHoklch(37.88% 0.183 281.4)
XYZxyz(8.5454, 4.6293, 32.7844)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A249E #889E24
analogous
#244B9E #3A249E #77249E
triadic
#3A249E #9E3A24 #249E3A
tetradic
#3A249E #9E244B #889E24 #249E77
square
#3A249E #9E244B #889E24 #249E77
split-complementary
#3A249E #9E7724 #4B9E24
monochromatic
#150D3A #28196C #3A249E #4C2FD0 #7761DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A249E#FFFFFF#000000##FFFFFF
##3A249E1.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)
#0041A1
Deuteranopia (green-blind)
#00389C
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3a249e;
/* rgb */ color: rgb(58, 36, 158);
/* oklch */ color: oklch(37.9% 0.183 281.4);
Tailwind
colors: {
  custom: {
    50: '#7e62bc',
    500: '#3a249e',
    950: '#000000',
  },
}
SCSS
$custom: #3a249e;
$custom-light: #7e62bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a249e",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 158
  },
  "hsl": {
    "h": 250.82,
    "s": 62.887,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37876,
    "c": 0.18316,
    "h": 281.4
  },
  "luminance": 0.0463
}

Semantic roles & 50–950 ramp

primary
#3A249E
secondary
#AEC05E
accent
#E642C8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3A249E

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

Preview Lab → · Contrast checker → · Palette generator →

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