#341A58#341A58

#341A58 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.1% C 0.107 H 298.9°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#341A58
RGBrgb(52, 26, 88)
HSLhsl(265, 54%, 22%)
HSVhsv(265, 70%, 35%)
CMYKcmyk(40.9%, 70.5%, 0%, 65.5%)
CIE-LABlab(16.37, 27.55, -32.78)
CIE-LCHlch(16.37, 42.82, 310.04°)
OKLaboklab(29.1% 0.0515 -0.0933)
OKLCHoklch(29.1% 0.107 298.9)
XYZxyz(3.5466, 2.1734, 9.4633)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A58 #3E581A
analogous
#1A1F58 #341A58 #531A58
triadic
#341A58 #58341A #1A5834
tetradic
#341A58 #581A1F #3E581A #1A5853
square
#341A58 #581A1F #3E581A #1A5853
split-complementary
#341A58 #58531A #1F581A
monochromatic
#0E0718 #180C29 #341A58 #502887 #6C36B6

Accessibility & contrast

On white

14.64
#341A58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#341A58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A58
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A58#FFFFFF#000000##FFFFFF
##341A581.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#2C2836
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #341a58;
/* rgb */ color: rgb(52, 26, 88);
/* oklch */ color: oklch(29.1% 0.107 298.9);
Tailwind
colors: {
  custom: {
    50: '#6f5888',
    500: '#341a58',
    950: '#000000',
  },
}
SCSS
$custom: #341a58;
$custom-light: #6f5888;
$custom-dark: #000000;
JSON
{
  "hex": "#341a58",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 88
  },
  "hsl": {
    "h": 265.161,
    "s": 54.386,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29105,
    "c": 0.10659,
    "h": 298.9
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#341A58
secondary
#6D8E40
accent
#DE4AA0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341A58

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

Preview Lab → · Contrast checker → · Palette generator →

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