#341B68#341B68

#341B68 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.126 H 292.2°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).

Color values

HEX#341B68
RGBrgb(52, 27, 104)
HSLhsl(259, 59%, 26%)
HSVhsv(259, 74%, 41%)
CMYKcmyk(50%, 74%, 0%, 59.2%)
CIE-LABlab(17.98, 31.79, -40.78)
CIE-LCHlch(17.98, 51.70, 307.93°)
OKLaboklab(30.69% 0.0476 -0.1169)
OKLCHoklch(30.69% 0.126 292.2)
XYZxyz(4.3061, 2.5133, 13.3522)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B68 #4F681B
analogous
#1B2868 #341B68 #5A1B68
triadic
#341B68 #68341B #1B6834
tetradic
#341B68 #681B28 #4F681B #1B685A
square
#341B68 #681B28 #4F681B #1B685A
split-complementary
#341B68 #685A1B #28681B
monochromatic
#0C0618 #1C0E37 #341B68 #4C2899 #6534C9

Accessibility & contrast

On white

13.98
#341B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#341B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B68
13.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B68#FFFFFF#000000##FFFFFF
##341B681.0013.981.5013.98
#FFFFFF13.981.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#242F3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #341b68;
/* rgb */ color: rgb(52, 27, 104);
/* oklch */ color: oklch(30.7% 0.126 292.2);
Tailwind
colors: {
  custom: {
    50: '#715a94',
    500: '#341b68',
    950: '#000000',
  },
}
SCSS
$custom: #341b68;
$custom-light: #715a94;
$custom-dark: #000000;
JSON
{
  "hex": "#341b68",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 259.481,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30692,
    "c": 0.12622,
    "h": 292.2
  },
  "luminance": 0.02513
}

Semantic roles & 50–950 ramp

primary
#341B68
secondary
#7F9D42
accent
#E246AF
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #341B68

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

Preview Lab → · Contrast checker → · Palette generator →

#341B68 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva