#34195F#34195F

#34195F is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.117 H 296.1°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#34195F
RGBrgb(52, 25, 95)
HSLhsl(263, 58%, 24%)
HSVhsv(263, 74%, 37%)
CMYKcmyk(45.3%, 73.7%, 0%, 62.7%)
CIE-LABlab(16.76, 30.21, -36.83)
CIE-LCHlch(16.76, 47.64, 309.36°)
OKLaboklab(29.57% 0.0516 -0.1053)
OKLCHoklch(29.57% 0.117 296.1)
XYZxyz(3.8288, 2.2515, 11.0571)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34195F #445F19
analogous
#19215F #34195F #57195F
triadic
#34195F #5F3419 #195F34
tetradic
#34195F #5F1921 #445F19 #195F57
square
#34195F #5F1921 #445F19 #195F57
split-complementary
#34195F #5F5719 #215F19
monochromatic
#0D0618 #190C2F #34195F #4F268F #6932C0

Accessibility & contrast

On white

14.48
#34195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#34195F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34195F
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34195F#FFFFFF#000000##FFFFFF
##34195F1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#292A3A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #34195f;
/* rgb */ color: rgb(52, 25, 95);
/* oklch */ color: oklch(29.6% 0.117 296.1);
Tailwind
colors: {
  custom: {
    50: '#70588d',
    500: '#34195f',
    950: '#000000',
  },
}
SCSS
$custom: #34195f;
$custom-light: #70588d;
$custom-dark: #000000;
JSON
{
  "hex": "#34195f",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 263.143,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29567,
    "c": 0.11724,
    "h": 296.1
  },
  "luminance": 0.02252
}

Semantic roles & 50–950 ramp

primary
#34195F
secondary
#74953F
accent
#E246A6
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34195F

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

Preview Lab → · Contrast checker → · Palette generator →

#34195F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva