#341275#341275

#341275 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.152 H 289.8°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#341275
RGBrgb(52, 18, 117)
HSLhsl(261, 73%, 26%)
HSVhsv(261, 85%, 46%)
CMYKcmyk(55.6%, 84.6%, 0%, 54.1%)
CIE-LABlab(17.68, 40.20, -49.72)
CIE-LCHlch(17.68, 63.94, 308.96°)
OKLaboklab(30.88% 0.0516 -0.143)
OKLCHoklch(30.88% 0.152 289.8)
XYZxyz(4.8424, 2.4468, 17.0433)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341275 #537512
analogous
#122275 #341275 #661275
triadic
#341275 #753412 #127534
tetradic
#341275 #751222 #537512 #127566
square
#341275 #751222 #537512 #127566
split-complementary
#341275 #756612 #227512
monochromatic
#0C041B #1C0A40 #341275 #4C1AAA #6424DD

Accessibility & contrast

On white

14.10
#341275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#341275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341275
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341275#FFFFFF#000000##FFFFFF
##3412751.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#1B3044
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341275;
/* rgb */ color: rgb(52, 18, 117);
/* oklch */ color: oklch(30.9% 0.152 289.8);
Tailwind
colors: {
  custom: {
    50: '#74559e',
    500: '#341275',
    950: '#000000',
  },
}
SCSS
$custom: #341275;
$custom-light: #74559e;
$custom-dark: #000000;
JSON
{
  "hex": "#341275",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 260.606,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.30875,
    "c": 0.15202,
    "h": 289.8
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#341275
secondary
#84AC37
accent
#F038B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341275

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

Preview Lab → · Contrast checker → · Palette generator →

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