#351872#351872

#351872 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.142 H 290.4°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#351872
RGBrgb(53, 24, 114)
HSLhsl(259, 65%, 27%)
HSVhsv(259, 79%, 45%)
CMYKcmyk(53.5%, 78.9%, 0%, 55.3%)
CIE-LABlab(18.47, 36.62, -46.47)
CIE-LCHlch(18.47, 59.16, 308.24°)
OKLaboklab(31.36% 0.0496 -0.1335)
OKLCHoklch(31.36% 0.142 290.4)
XYZxyz(4.8312, 2.6249, 16.1684)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351872 #557218
analogous
#182872 #351872 #621872
triadic
#351872 #723518 #187235
tetradic
#351872 #721828 #557218 #187262
square
#351872 #721828 #557218 #187262
split-complementary
#351872 #726218 #287218
monochromatic
#0C0519 #1D0D3F #351872 #4D23A5 #6531D4

Accessibility & contrast

On white

13.77
#351872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#351872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351872
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351872#FFFFFF#000000##FFFFFF
##3518721.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F75
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#1F3144
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #351872;
/* rgb */ color: rgb(53, 24, 114);
/* oklch */ color: oklch(31.4% 0.142 290.4);
Tailwind
colors: {
  custom: {
    50: '#74589b',
    500: '#351872',
    950: '#000000',
  },
}
SCSS
$custom: #351872;
$custom-light: #74589b;
$custom-dark: #000000;
JSON
{
  "hex": "#351872",
  "rgb": {
    "r": 53,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 259.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31364,
    "c": 0.14243,
    "h": 290.4
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#351872
secondary
#86A73E
accent
#E840B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #351872

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

Preview Lab → · Contrast checker → · Palette generator →

#351872 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva