#35187F#35187F

#35187F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.158 H 286.8°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#35187F
RGBrgb(53, 24, 127)
HSLhsl(257, 68%, 30%)
HSVhsv(257, 81%, 50%)
CMYKcmyk(58.3%, 81.1%, 0%, 50.2%)
CIE-LABlab(19.81, 40.49, -52.60)
CIE-LCHlch(19.81, 66.38, 307.59°)
OKLaboklab(32.7% 0.0456 -0.1514)
OKLCHoklch(32.7% 0.158 286.8)
XYZxyz(5.6244, 2.9421, 20.3461)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35187F #627F18
analogous
#182F7F #35187F #69187F
triadic
#35187F #7F3518 #187F35
tetradic
#35187F #7F182F #627F18 #187F69
square
#35187F #7F182F #627F18 #187F69
split-complementary
#35187F #7F6918 #2F7F18
monochromatic
#0B051A #200E4C #35187F #4A22B2 #6538D9

Accessibility & contrast

On white

13.22
#35187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#35187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35187F
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35187F#FFFFFF#000000##FFFFFF
##35187F1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#12364B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #35187f;
/* rgb */ color: rgb(53, 24, 127);
/* oklch */ color: oklch(32.7% 0.158 286.8);
Tailwind
colors: {
  custom: {
    50: '#7659a5',
    500: '#35187f',
    950: '#000000',
  },
}
SCSS
$custom: #35187f;
$custom-light: #7659a5;
$custom-dark: #000000;
JSON
{
  "hex": "#35187f",
  "rgb": {
    "r": 53,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 256.893,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32702,
    "c": 0.15816,
    "h": 286.8
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#35187F
secondary
#93B33F
accent
#EB3DBA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #35187F

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

Preview Lab → · Contrast checker → · Palette generator →

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