#3A245E#3A245E

#3A245E is a dark, moderate violet. Relative luminance 0.030; OKLCH L 32.0% C 0.100 H 298.0°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#3A245E
RGBrgb(58, 36, 94)
HSLhsl(263, 45%, 25%)
HSVhsv(263, 62%, 37%)
CMYKcmyk(38.3%, 61.7%, 0%, 63.1%)
CIE-LABlab(19.92, 24.64, -31.01)
CIE-LCHlch(19.92, 39.61, 308.47°)
OKLaboklab(32.01% 0.0469 -0.088)
OKLCHoklch(32.01% 0.1 298)
XYZxyz(4.3957, 2.9694, 10.9291)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A245E #485E24
analogous
#242B5E #3A245E #57245E
triadic
#3A245E #5E3A24 #245E3A
tetradic
#3A245E #5E242B #485E24 #245E57
square
#3A245E #5E242B #485E24 #245E57
split-complementary
#3A245E #5E5724 #2B5E24
monochromatic
#0E0816 #1F1332 #3A245E #55358A #7146B7

Accessibility & contrast

On white

13.18
#3A245E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3A245E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A245E
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A245E#FFFFFF#000000##FFFFFF
##3A245E1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073060
Deuteranopia (green-blind)
#10305D
Tritanopia (blue-blind)
#32303D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a245e;
/* rgb */ color: rgb(58, 36, 94);
/* oklch */ color: oklch(32.0% 0.100 298.0);
Tailwind
colors: {
  custom: {
    50: '#735f8c',
    500: '#3a245e',
    950: '#000000',
  },
}
SCSS
$custom: #3a245e;
$custom-light: #735f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a245e",
  "rgb": {
    "r": 58,
    "g": 36,
    "b": 94
  },
  "hsl": {
    "h": 262.759,
    "s": 44.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32007,
    "c": 0.09967,
    "h": 298
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#3A245E
secondary
#77924C
accent
#D453A3
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08050C
muted
#7B797D

Preview Lab

Preview with #3A245E

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

Preview Lab → · Contrast checker → · Palette generator →

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