#341B64#341B64

#341B64 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.121 H 293.6°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#341B64
RGBrgb(52, 27, 100)
HSLhsl(261, 57%, 25%)
HSVhsv(261, 73%, 39%)
CMYKcmyk(48%, 73%, 0%, 60.8%)
CIE-LABlab(17.62, 30.56, -38.74)
CIE-LCHlch(17.62, 49.35, 308.27°)
OKLaboklab(30.32% 0.0484 -0.1109)
OKLCHoklch(30.32% 0.121 293.6)
XYZxyz(4.1077, 2.4339, 12.3075)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B64 #4B641B
analogous
#1B2764 #341B64 #591B64
triadic
#341B64 #64341B #1B6434
tetradic
#341B64 #641B27 #4B641B #1B6459
square
#341B64 #641B27 #4B641B #1B6459
split-complementary
#341B64 #64591B #27641B
monochromatic
#0D0718 #1B0E34 #341B64 #4D2894 #6635C4

Accessibility & contrast

On white

14.12
#341B64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#341B64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B64
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B64#FFFFFF#000000##FFFFFF
##341B641.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002A63
Tritanopia (blue-blind)
#262D3D
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341b64;
/* rgb */ color: rgb(52, 27, 100);
/* oklch */ color: oklch(30.3% 0.121 293.6);
Tailwind
colors: {
  custom: {
    50: '#715991',
    500: '#341b64',
    950: '#000000',
  },
}
SCSS
$custom: #341b64;
$custom-light: #715991;
$custom-dark: #000000;
JSON
{
  "hex": "#341b64",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 100
  },
  "hsl": {
    "h": 260.548,
    "s": 57.48,
    "l": 24.902
  },
  "oklch": {
    "l": 0.30321,
    "c": 0.121,
    "h": 293.6
  },
  "luminance": 0.02434
}

Semantic roles & 50–950 ramp

primary
#341B64
secondary
#7B9941
accent
#E147AC
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #341B64

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

Preview Lab → · Contrast checker → · Palette generator →

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