#3318A8#3318A8

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

Color values

HEX#3318A8
RGBrgb(51, 24, 168)
HSLhsl(251, 75%, 38%)
HSVhsv(251, 86%, 66%)
CMYKcmyk(69.6%, 85.7%, 0%, 34.1%)
CIE-LABlab(24.27, 52.26, -70.62)
CIE-LCHlch(24.27, 87.85, 306.50°)
OKLaboklab(37.09% 0.0285 -0.2039)
OKLCHoklch(37.09% 0.206 278)
XYZxyz(8.7575, 4.1834, 37.3842)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3318A8 #8DA818
analogous
#1845A8 #3318A8 #7B18A8
triadic
#3318A8 #A83318 #18A833
tetradic
#3318A8 #A81845 #8DA818 #18A87B
square
#3318A8 #A81845 #8DA818 #18A87B
split-complementary
#3318A8 #A87B18 #45A818
monochromatic
#12093D #231072 #3318A8 #4320DE #6F54E7

Accessibility & contrast

On white

11.43
#3318A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3318A8
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3318A8#FFFFFF#000000##FFFFFF
##3318A81.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.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: #3318a8;
/* rgb */ color: rgb(51, 24, 168);
/* oklch */ color: oklch(37.1% 0.206 278.0);
Tailwind
colors: {
  custom: {
    50: '#7d5cc3',
    500: '#3318a8',
    950: '#000000',
  },
}
SCSS
$custom: #3318a8;
$custom-light: #7d5cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#3318a8",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 168
  },
  "hsl": {
    "h": 251.25,
    "s": 75,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37094,
    "c": 0.20593,
    "h": 278
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#3318A8
secondary
#B3C953
accent
#F236CE
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #3318A8

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

Preview Lab → · Contrast checker → · Palette generator →

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