#35188B#35188B

#35188B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.172 H 284.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#35188B
RGBrgb(53, 24, 139)
HSLhsl(255, 71%, 32%)
HSVhsv(255, 83%, 55%)
CMYKcmyk(61.9%, 82.7%, 0%, 45.5%)
CIE-LABlab(21.11, 44.03, -58.02)
CIE-LCHlch(21.11, 72.83, 307.20°)
OKLaboklab(33.99% 0.0416 -0.1673)
OKLCHoklch(33.99% 0.172 284)
XYZxyz(6.4536, 3.2738, 24.7129)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#35188B #6E8B18
analogous
#18358B #35188B #6E188B
triadic
#35188B #8B3518 #188B35
tetradic
#35188B #8B1835 #6E8B18 #188B6E
square
#35188B #8B1835 #6E8B18 #188B6E
split-complementary
#35188B #8B6E18 #358B18
monochromatic
#0D0623 #210F57 #35188B #4921BF #673FDE

Accessibility & contrast

On white

12.69
#35188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#35188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #35188B
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##35188B#FFFFFF#000000##FFFFFF
##35188B1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #35188b;
/* rgb */ color: rgb(53, 24, 139);
/* oklch */ color: oklch(34.0% 0.172 284.0);
Tailwind
colors: {
  custom: {
    50: '#785aae',
    500: '#35188b',
    950: '#000000',
  },
}
SCSS
$custom: #35188b;
$custom-light: #785aae;
$custom-dark: #000000;
JSON
{
  "hex": "#35188b",
  "rgb": {
    "r": 53,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 255.13,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3399,
    "c": 0.17235,
    "h": 284
  },
  "luminance": 0.03274
}

Semantic roles & 50–950 ramp

primary
#35188B
secondary
#9FBE40
accent
#ED3AC0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #35188B

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

Preview Lab → · Contrast checker → · Palette generator →

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