#341F90#341F90

#341F90 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.172 H 281.5°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#341F90
RGBrgb(52, 31, 144)
HSLhsl(251, 65%, 34%)
HSVhsv(251, 78%, 56%)
CMYKcmyk(63.9%, 78.5%, 0%, 43.5%)
CIE-LABlab(22.73, 42.01, -58.45)
CIE-LCHlch(22.73, 71.98, 305.71°)
OKLaboklab(35.26% 0.0342 -0.1686)
OKLCHoklch(35.26% 0.172 281.5)
XYZxyz(6.9386, 3.7231, 26.7331)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F90 #7B901F
analogous
#1F4390 #341F90 #6C1F90
triadic
#341F90 #90341F #1F9034
tetradic
#341F90 #901F43 #7B901F #1F906C
square
#341F90 #901F43 #7B901F #1F906C
split-complementary
#341F90 #906C1F #43901F
monochromatic
#10092B #22145E #341F90 #462AC2 #6A50D9

Accessibility & contrast

On white

12.04
#341F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#341F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F90
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F90#FFFFFF#000000##FFFFFF
##341F901.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341f90;
/* rgb */ color: rgb(52, 31, 144);
/* oklch */ color: oklch(35.3% 0.172 281.5);
Tailwind
colors: {
  custom: {
    50: '#785eb2',
    500: '#341f90',
    950: '#000000',
  },
}
SCSS
$custom: #341f90;
$custom-light: #785eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#341f90",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 251.15,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35258,
    "c": 0.17207,
    "h": 281.5
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#341F90
secondary
#A8BC4E
accent
#E840C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341F90

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

Preview Lab → · Contrast checker → · Palette generator →

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