#341F68#341F68

#341F68 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.121 H 291.0°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#341F68
RGBrgb(52, 31, 104)
HSLhsl(257, 54%, 26%)
HSVhsv(257, 70%, 41%)
CMYKcmyk(50%, 70.2%, 0%, 59.2%)
CIE-LABlab(18.84, 29.41, -39.38)
CIE-LCHlch(18.84, 49.15, 306.76°)
OKLaboklab(31.31% 0.0433 -0.1128)
OKLCHoklch(31.31% 0.121 291)
XYZxyz(4.4041, 2.7094, 13.3849)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F68 #53681F
analogous
#1F2F68 #341F68 #591F68
triadic
#341F68 #68341F #1F6834
tetradic
#341F68 #681F2F #53681F #1F6859
square
#341F68 #681F2F #53681F #1F6859
split-complementary
#341F68 #68591F #2F681F
monochromatic
#0C0718 #1C1139 #341F68 #4C2D97 #643CC5

Accessibility & contrast

On white

13.62
#341F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#341F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F68
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F68#FFFFFF#000000##FFFFFF
##341F681.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#002C67
Tritanopia (blue-blind)
#243140
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #341f68;
/* rgb */ color: rgb(52, 31, 104);
/* oklch */ color: oklch(31.3% 0.121 291.0);
Tailwind
colors: {
  custom: {
    50: '#715c94',
    500: '#341f68',
    950: '#000000',
  },
}
SCSS
$custom: #341f68;
$custom-light: #715c94;
$custom-dark: #000000;
JSON
{
  "hex": "#341f68",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 104
  },
  "hsl": {
    "h": 257.26,
    "s": 54.074,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31309,
    "c": 0.12078,
    "h": 291
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#341F68
secondary
#849C46
accent
#DD4AB3
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #341F68

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

Preview Lab → · Contrast checker → · Palette generator →

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