#341258#341258

#341258 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.118 H 301.1°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#341258
RGBrgb(52, 18, 88)
HSLhsl(269, 66%, 21%)
HSVhsv(269, 80%, 35%)
CMYKcmyk(40.9%, 79.5%, 0%, 65.5%)
CIE-LABlab(14.77, 31.99, -35.37)
CIE-LCHlch(14.77, 47.70, 312.13°)
OKLaboklab(27.97% 0.0608 -0.1009)
OKLCHoklch(27.97% 0.118 301.1)
XYZxyz(3.3935, 1.8672, 9.4123)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341258 #365812
analogous
#121358 #341258 #571258
triadic
#341258 #583412 #125834
tetradic
#341258 #581213 #365812 #125857
square
#341258 #581213 #365812 #125857
split-complementary
#341258 #585712 #135812
monochromatic
#0F0519 #160825 #341258 #521C8B #7027BE

Accessibility & contrast

On white

15.29
#341258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#341258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341258
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341258#FFFFFF#000000##FFFFFF
##3412581.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#2C2434
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #341258;
/* rgb */ color: rgb(52, 18, 88);
/* oklch */ color: oklch(28.0% 0.118 301.1);
Tailwind
colors: {
  custom: {
    50: '#705488',
    500: '#341258',
    950: '#000000',
  },
}
SCSS
$custom: #341258;
$custom-light: #705488;
$custom-dark: #000000;
JSON
{
  "hex": "#341258",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 269.143,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27965,
    "c": 0.11786,
    "h": 301.1
  },
  "luminance": 0.01867
}

Semantic roles & 50–950 ramp

primary
#341258
secondary
#649135
accent
#E93F96
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341258

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

Preview Lab → · Contrast checker → · Palette generator →

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