#3418A8#3418A8

#3418A8 is a dark, highly saturated violet. Relative luminance 0.042; OKLCH L 37.2% C 0.206 H 278.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#3418A8
RGBrgb(52, 24, 168)
HSLhsl(252, 75%, 38%)
HSVhsv(252, 86%, 66%)
CMYKcmyk(69%, 85.7%, 0%, 34.1%)
CIE-LABlab(24.35, 52.33, -70.48)
CIE-LCHlch(24.35, 87.78, 306.60°)
OKLaboklab(37.17% 0.03 -0.2035)
OKLCHoklch(37.17% 0.206 278.4)
XYZxyz(8.8084, 4.2097, 37.3866)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3418A8 #8CA818
analogous
#1844A8 #3418A8 #7C18A8
triadic
#3418A8 #A83418 #18A834
tetradic
#3418A8 #A81844 #8CA818 #18A87C
square
#3418A8 #A81844 #8CA818 #18A87C
split-complementary
#3418A8 #A87C18 #44A818
monochromatic
#13093D #231072 #3418A8 #4520DE #7054E7

Accessibility & contrast

On white

11.40
#3418A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3418A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3418A8
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3418A8#FFFFFF#000000##FFFFFF
##3418A81.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004763
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3418a8;
/* rgb */ color: rgb(52, 24, 168);
/* oklch */ color: oklch(37.2% 0.206 278.4);
Tailwind
colors: {
  custom: {
    50: '#7e5cc3',
    500: '#3418a8',
    950: '#000000',
  },
}
SCSS
$custom: #3418a8;
$custom-light: #7e5cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#3418a8",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 168
  },
  "hsl": {
    "h": 251.667,
    "s": 75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37173,
    "c": 0.20571,
    "h": 278.4
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#3418A8
secondary
#B2C953
accent
#F236CD
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #3418A8

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

Preview Lab → · Contrast checker → · Palette generator →

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