#3418B4#3418B4

#3418B4 is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.6% C 0.219 H 276.8°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#3418B4
RGBrgb(52, 24, 180)
HSLhsl(251, 76%, 40%)
HSVhsv(251, 87%, 71%)
CMYKcmyk(71.1%, 86.7%, 0%, 29.4%)
CIE-LABlab(25.80, 55.72, -75.29)
CIE-LCHlch(25.80, 93.67, 306.50°)
OKLaboklab(38.57% 0.0259 -0.2175)
OKLCHoklch(38.57% 0.219 276.8)
XYZxyz(9.9783, 4.6777, 43.5482)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3418B4 #98B418
analogous
#184AB4 #3418B4 #8218B4
triadic
#3418B4 #B43418 #18B434
tetradic
#3418B4 #B4184A #98B418 #18B482
square
#3418B4 #B4184A #98B418 #18B482
split-complementary
#3418B4 #B48218 #4AB418
monochromatic
#150A48 #24117E #3418B4 #4927E2 #765DE9

Accessibility & contrast

On white

10.85
#3418B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3418B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3418B4
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3418B4#FFFFFF#000000##FFFFFF
##3418B41.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0036B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3418b4;
/* rgb */ color: rgb(52, 24, 180);
/* oklch */ color: oklch(38.6% 0.219 276.8);
Tailwind
colors: {
  custom: {
    50: '#805dcc',
    500: '#3418b4',
    950: '#000000',
  },
}
SCSS
$custom: #3418b4;
$custom-light: #805dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3418b4",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 250.769,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.38573,
    "c": 0.21903,
    "h": 276.8
  },
  "luminance": 0.04679
}

Semantic roles & 50–950 ramp

primary
#3418B4
secondary
#B9CD5B
accent
#F335D1
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3418B4

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

Preview Lab → · Contrast checker → · Palette generator →

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