#35188F#35188F

#35188F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.177 H 283.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#35188F
RGBrgb(53, 24, 143)
HSLhsl(255, 71%, 33%)
HSVhsv(255, 83%, 56%)
CMYKcmyk(62.9%, 83.2%, 0%, 43.9%)
CIE-LABlab(21.55, 45.20, -59.78)
CIE-LCHlch(21.55, 74.94, 307.10°)
OKLaboklab(34.43% 0.0402 -0.1724)
OKLCHoklch(34.43% 0.177 283.1)
XYZxyz(6.7512, 3.3929, 26.2804)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35188F #728F18
analogous
#18368F #35188F #70188F
triadic
#35188F #8F3518 #188F35
tetradic
#35188F #8F1836 #728F18 #188F70
square
#35188F #8F1836 #728F18 #188F70
split-complementary
#35188F #8F7018 #368F18
monochromatic
#0E0626 #220F5B #35188F #4821C3 #6842DF

Accessibility & contrast

On white

12.51
#35188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#35188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35188F
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35188F#FFFFFF#000000##FFFFFF
##35188F1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #35188f;
/* rgb */ color: rgb(53, 24, 143);
/* oklch */ color: oklch(34.4% 0.177 283.1);
Tailwind
colors: {
  custom: {
    50: '#795ab1',
    500: '#35188f',
    950: '#000000',
  },
}
SCSS
$custom: #35188f;
$custom-light: #795ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#35188f",
  "rgb": {
    "r": 53,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 254.622,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34429,
    "c": 0.17702,
    "h": 283.1
  },
  "luminance": 0.03393
}

Semantic roles & 50–950 ramp

primary
#35188F
secondary
#A2C043
accent
#EE3AC2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #35188F

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

Preview Lab → · Contrast checker → · Palette generator →

#35188F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva