#341F63#341F63

#341F63 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.9% C 0.114 H 292.7°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#341F63
RGBrgb(52, 31, 99)
HSLhsl(259, 52%, 25%)
HSVhsv(259, 69%, 39%)
CMYKcmyk(47.5%, 68.7%, 0%, 61.2%)
CIE-LABlab(18.41, 27.84, -36.79)
CIE-LCHlch(18.41, 46.14, 307.12°)
OKLaboklab(30.87% 0.0439 -0.1052)
OKLCHoklch(30.87% 0.114 292.7)
XYZxyz(4.1577, 2.6108, 12.0868)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F63 #4E631F
analogous
#1F2C63 #341F63 #561F63
triadic
#341F63 #63341F #1F6334
tetradic
#341F63 #631F2C #4E631F #1F6356
square
#341F63 #631F2C #4E631F #1F6356
split-complementary
#341F63 #63561F #2C631F
monochromatic
#0C0717 #1C1034 #341F63 #4C2E92 #653CC0

Accessibility & contrast

On white

13.80
#341F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#341F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F63
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F63#FFFFFF#000000##FFFFFF
##341F631.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E65
Deuteranopia (green-blind)
#002C62
Tritanopia (blue-blind)
#262F3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #341f63;
/* rgb */ color: rgb(52, 31, 99);
/* oklch */ color: oklch(30.9% 0.114 292.7);
Tailwind
colors: {
  custom: {
    50: '#705c90',
    500: '#341f63',
    950: '#000000',
  },
}
SCSS
$custom: #341f63;
$custom-light: #705c90;
$custom-dark: #000000;
JSON
{
  "hex": "#341f63",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 99
  },
  "hsl": {
    "h": 258.529,
    "s": 52.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.30866,
    "c": 0.11397,
    "h": 292.7
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#341F63
secondary
#7E9846
accent
#DC4CAF
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #341F63

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

Preview Lab → · Contrast checker → · Palette generator →

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