#3318B4#3318B4

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

Color values

HEX#3318B4
RGBrgb(51, 24, 180)
HSLhsl(250, 76%, 40%)
HSVhsv(250, 87%, 71%)
CMYKcmyk(71.7%, 86.7%, 0%, 29.4%)
CIE-LABlab(25.72, 55.65, -75.43)
CIE-LCHlch(25.72, 93.74, 306.42°)
OKLaboklab(38.5% 0.0245 -0.2179)
OKLCHoklch(38.5% 0.219 276.4)
XYZxyz(9.9274, 4.6514, 43.5458)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3318B4 #99B418
analogous
#184BB4 #3318B4 #8118B4
triadic
#3318B4 #B43318 #18B433
tetradic
#3318B4 #B4184B #99B418 #18B481
square
#3318B4 #B4184B #99B418 #18B481
split-complementary
#3318B4 #B48118 #4BB418
monochromatic
#140A48 #24117E #3318B4 #4727E2 #755DE9

Accessibility & contrast

On white

10.88
#3318B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#3318B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3318B4
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3318B4#FFFFFF#000000##FFFFFF
##3318B41.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3318b4;
/* rgb */ color: rgb(51, 24, 180);
/* oklch */ color: oklch(38.5% 0.219 276.4);
Tailwind
colors: {
  custom: {
    50: '#805dcc',
    500: '#3318b4',
    950: '#000000',
  },
}
SCSS
$custom: #3318b4;
$custom-light: #805dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3318b4",
  "rgb": {
    "r": 51,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 250.385,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.38499,
    "c": 0.21926,
    "h": 276.4
  },
  "luminance": 0.04652
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3318B4

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

Preview Lab → · Contrast checker → · Palette generator →

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