#341F7B#341F7B

#341F7B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.146 H 285.8°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#341F7B
RGBrgb(52, 31, 123)
HSLhsl(254, 60%, 30%)
HSVhsv(254, 75%, 48%)
CMYKcmyk(57.7%, 74.8%, 0%, 51.8%)
CIE-LABlab(20.60, 35.42, -48.77)
CIE-LCHlch(20.60, 60.28, 305.99°)
OKLaboklab(33.11% 0.0396 -0.1403)
OKLCHoklch(33.11% 0.146 285.8)
XYZxyz(5.4802, 3.1398, 19.0523)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F7B #667B1F
analogous
#1F387B #341F7B #621F7B
triadic
#341F7B #7B341F #1F7B34
tetradic
#341F7B #7B1F38 #667B1F #1F7B62
square
#341F7B #7B1F38 #667B1F #1F7B62
split-complementary
#341F7B #7B621F #387B1F
monochromatic
#0B0619 #1F134A #341F7B #492BAC #6444D0

Accessibility & contrast

On white

12.90
#341F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#341F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F7B
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F7B#FFFFFF#000000##FFFFFF
##341F7B1.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#13384B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341f7b;
/* rgb */ color: rgb(52, 31, 123);
/* oklch */ color: oklch(33.1% 0.146 285.8);
Tailwind
colors: {
  custom: {
    50: '#745da2',
    500: '#341f7b',
    950: '#000000',
  },
}
SCSS
$custom: #341f7b;
$custom-light: #745da2;
$custom-dark: #000000;
JSON
{
  "hex": "#341f7b",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 253.696,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33105,
    "c": 0.14581,
    "h": 285.8
  },
  "luminance": 0.0314
}

Semantic roles & 50–950 ramp

primary
#341F7B
secondary
#97AE48
accent
#E345BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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