#351272#351272

#351272 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.149 H 291.5°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#351272
RGBrgb(53, 18, 114)
HSLhsl(262, 73%, 26%)
HSVhsv(262, 84%, 45%)
CMYKcmyk(53.5%, 84.2%, 0%, 55.3%)
CIE-LABlab(17.48, 39.49, -48.10)
CIE-LCHlch(17.48, 62.23, 309.38°)
OKLaboklab(30.67% 0.0544 -0.1382)
OKLCHoklch(30.67% 0.149 291.5)
XYZxyz(4.7209, 2.4042, 16.1316)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#351272 #4F7212
analogous
#121F72 #351272 #651272
triadic
#351272 #723512 #127235
tetradic
#351272 #72121F #4F7212 #127265
square
#351272 #72121F #4F7212 #127265
split-complementary
#351272 #726512 #1F7212
monochromatic
#0C041A #1C0A3D #351272 #4E1AA7 #6623DC

Accessibility & contrast

On white

14.18
#351272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#351272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #351272
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##351272#FFFFFF#000000##FFFFFF
##3512721.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#202E43
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #351272;
/* rgb */ color: rgb(53, 18, 114);
/* oklch */ color: oklch(30.7% 0.149 291.5);
Tailwind
colors: {
  custom: {
    50: '#74559c',
    500: '#351272',
    950: '#000000',
  },
}
SCSS
$custom: #351272;
$custom-light: #74559c;
$custom-dark: #000000;
JSON
{
  "hex": "#351272",
  "rgb": {
    "r": 53,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 261.875,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30671,
    "c": 0.14854,
    "h": 291.5
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#351272
secondary
#7FA937
accent
#EF38AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #351272

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

Preview Lab → · Contrast checker → · Palette generator →

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