#341B62#341B62

#341B62 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.118 H 294.3°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#341B62
RGBrgb(52, 27, 98)
HSLhsl(261, 57%, 25%)
HSVhsv(261, 72%, 38%)
CMYKcmyk(46.9%, 72.4%, 0%, 61.6%)
CIE-LABlab(17.44, 29.95, -37.71)
CIE-LCHlch(17.44, 48.16, 308.46°)
OKLaboklab(30.14% 0.0488 -0.1078)
OKLCHoklch(30.14% 0.118 294.3)
XYZxyz(4.0121, 2.3957, 11.8039)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B62 #49621B
analogous
#1B2662 #341B62 #581B62
triadic
#341B62 #62341B #1B6234
tetradic
#341B62 #621B26 #49621B #1B6258
square
#341B62 #621B26 #49621B #1B6258
split-complementary
#341B62 #62581B #26621B
monochromatic
#0D0718 #1B0E32 #341B62 #4D2892 #6735C2

Accessibility & contrast

On white

14.20
#341B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#341B62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B62
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B62#FFFFFF#000000##FFFFFF
##341B621.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#272C3C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341b62;
/* rgb */ color: rgb(52, 27, 98);
/* oklch */ color: oklch(30.1% 0.118 294.3);
Tailwind
colors: {
  custom: {
    50: '#70598f',
    500: '#341b62',
    950: '#000000',
  },
}
SCSS
$custom: #341b62;
$custom-light: #70598f;
$custom-dark: #000000;
JSON
{
  "hex": "#341b62",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 98
  },
  "hsl": {
    "h": 261.127,
    "s": 56.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30139,
    "c": 0.11836,
    "h": 294.3
  },
  "luminance": 0.02396
}

Semantic roles & 50–950 ramp

primary
#341B62
secondary
#799841
accent
#E048AA
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #341B62

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

Preview Lab → · Contrast checker → · Palette generator →

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