#341858#341858

#341858 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.110 H 299.5°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#341858
RGBrgb(52, 24, 88)
HSLhsl(266, 57%, 22%)
HSVhsv(266, 73%, 35%)
CMYKcmyk(40.9%, 72.7%, 0%, 65.5%)
CIE-LABlab(15.94, 28.73, -33.47)
CIE-LCHlch(15.94, 44.11, 310.63°)
OKLaboklab(28.8% 0.054 -0.0954)
OKLCHoklch(28.8% 0.11 299.5)
XYZxyz(3.5038, 2.0879, 9.4490)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341858 #3C5818
analogous
#181C58 #341858 #541858
triadic
#341858 #583418 #185834
tetradic
#341858 #58181C #3C5818 #185854
square
#341858 #58181C #3C5818 #185854
split-complementary
#341858 #585418 #1C5818
monochromatic
#0E0718 #180B28 #341858 #502588 #6D32B8

Accessibility & contrast

On white

14.81
#341858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#341858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341858
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341858#FFFFFF#000000##FFFFFF
##3418581.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002757
Tritanopia (blue-blind)
#2C2735
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #341858;
/* rgb */ color: rgb(52, 24, 88);
/* oklch */ color: oklch(28.8% 0.110 299.5);
Tailwind
colors: {
  custom: {
    50: '#6f5788',
    500: '#341858',
    950: '#000000',
  },
}
SCSS
$custom: #341858;
$custom-light: #6f5788;
$custom-dark: #000000;
JSON
{
  "hex": "#341858",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 88
  },
  "hsl": {
    "h": 266.25,
    "s": 57.143,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28795,
    "c": 0.10959,
    "h": 299.5
  },
  "luminance": 0.02088
}

Semantic roles & 50–950 ramp

primary
#341858
secondary
#6B8F3D
accent
#E0479D
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341858

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

Preview Lab → · Contrast checker → · Palette generator →

#341858 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva