#341A62#341A62

#341A62 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.120 H 294.6°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#341A62
RGBrgb(52, 26, 98)
HSLhsl(262, 58%, 24%)
HSVhsv(262, 73%, 38%)
CMYKcmyk(46.9%, 73.5%, 0%, 61.6%)
CIE-LABlab(17.23, 30.54, -38.05)
CIE-LCHlch(17.23, 48.79, 308.75°)
OKLaboklab(29.99% 0.0499 -0.1089)
OKLCHoklch(29.99% 0.12 294.6)
XYZxyz(3.9896, 2.3506, 11.7964)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A62 #48621A
analogous
#1A2462 #341A62 #581A62
triadic
#341A62 #62341A #1A6234
tetradic
#341A62 #621A24 #48621A #1A6258
square
#341A62 #621A24 #48621A #1A6258
split-complementary
#341A62 #62581A #24621A
monochromatic
#0D0618 #1A0D32 #341A62 #4E2792 #6734C3

Accessibility & contrast

On white

14.28
#341A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#341A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A62
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A62#FFFFFF#000000##FFFFFF
##341A621.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B64
Deuteranopia (green-blind)
#002961
Tritanopia (blue-blind)
#272C3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #341a62;
/* rgb */ color: rgb(52, 26, 98);
/* oklch */ color: oklch(30.0% 0.120 294.6);
Tailwind
colors: {
  custom: {
    50: '#70598f',
    500: '#341a62',
    950: '#000000',
  },
}
SCSS
$custom: #341a62;
$custom-light: #70598f;
$custom-dark: #000000;
JSON
{
  "hex": "#341a62",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 98
  },
  "hsl": {
    "h": 261.667,
    "s": 58.065,
    "l": 24.314
  },
  "oklch": {
    "l": 0.29988,
    "c": 0.11975,
    "h": 294.6
  },
  "luminance": 0.02351
}

Semantic roles & 50–950 ramp

primary
#341A62
secondary
#789840
accent
#E147A9
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #341A62

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

Preview Lab → · Contrast checker → · Palette generator →

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