#3418A1#3418A1

#3418A1 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.198 H 279.4°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#3418A1
RGBrgb(52, 24, 161)
HSLhsl(252, 74%, 36%)
HSVhsv(252, 85%, 63%)
CMYKcmyk(67.7%, 85.1%, 0%, 36.9%)
CIE-LABlab(23.53, 50.33, -67.60)
CIE-LCHlch(23.53, 84.28, 306.67°)
OKLaboklab(36.37% 0.0324 -0.1952)
OKLCHoklch(36.37% 0.198 279.4)
XYZxyz(8.1738, 3.9559, 34.0441)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3418A1 #85A118
analogous
#1841A1 #3418A1 #7918A1
triadic
#3418A1 #A13418 #18A134
tetradic
#3418A1 #A11841 #85A118 #18A179
square
#3418A1 #A11841 #85A118 #18A179
split-complementary
#3418A1 #A17918 #41A118
monochromatic
#120836 #23106C #3418A1 #4520D6 #6D4FE5

Accessibility & contrast

On white

11.72
#3418A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3418A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3418A1
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3418A1#FFFFFF#000000##FFFFFF
##3418A11.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA5
Deuteranopia (green-blind)
#00339F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3418a1;
/* rgb */ color: rgb(52, 24, 161);
/* oklch */ color: oklch(36.4% 0.198 279.4);
Tailwind
colors: {
  custom: {
    50: '#7c5cbe',
    500: '#3418a1',
    950: '#000000',
  },
}
SCSS
$custom: #3418a1;
$custom-light: #7c5cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3418a1",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 252.263,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36366,
    "c": 0.19783,
    "h": 279.4
  },
  "luminance": 0.03957
}

Semantic roles & 50–950 ramp

primary
#3418A1
secondary
#AEC74E
accent
#F137CB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3418A1

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

Preview Lab → · Contrast checker → · Palette generator →

#3418A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva