#341F98#341F98

#341F98 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.182 H 280.1°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#341F98
RGBrgb(52, 31, 152)
HSLhsl(250, 66%, 36%)
HSVhsv(250, 80%, 60%)
CMYKcmyk(65.8%, 79.6%, 0%, 40.4%)
CIE-LABlab(23.59, 44.48, -61.98)
CIE-LCHlch(23.59, 76.29, 305.67°)
OKLaboklab(36.12% 0.0319 -0.1789)
OKLCHoklch(36.12% 0.182 280.1)
XYZxyz(7.5719, 3.9764, 30.0682)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F98 #83981F
analogous
#1F4698 #341F98 #701F98
triadic
#341F98 #98341F #1F9834
tetradic
#341F98 #981F46 #83981F #1F9870
square
#341F98 #981F46 #83981F #1F9870
split-complementary
#341F98 #98701F #46981F
monochromatic
#110A32 #231565 #341F98 #4529CB #6D55DC

Accessibility & contrast

On white

11.70
#341F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#341F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F98
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F98#FFFFFF#000000##FFFFFF
##341F981.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003496
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #341f98;
/* rgb */ color: rgb(52, 31, 152);
/* oklch */ color: oklch(36.1% 0.182 280.1);
Tailwind
colors: {
  custom: {
    50: '#7a5eb8',
    500: '#341f98',
    950: '#000000',
  },
}
SCSS
$custom: #341f98;
$custom-light: #7a5eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#341f98",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 250.413,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36115,
    "c": 0.18174,
    "h": 280.1
  },
  "luminance": 0.03977
}

Semantic roles & 50–950 ramp

primary
#341F98
secondary
#ADC053
accent
#E93FCB
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #341F98

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

Preview Lab → · Contrast checker → · Palette generator →

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