#34184C#34184C

#34184C is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.8% C 0.094 H 306.0°. Best body text is #FFFFFF at 15.21:1 contrast (WCAG AA passes).

Color values

HEX#34184C
RGBrgb(52, 24, 76)
HSLhsl(272, 52%, 20%)
HSVhsv(272, 68%, 30%)
CMYKcmyk(31.6%, 68.4%, 0%, 70.2%)
CIE-LABlab(14.98, 25.29, -26.87)
CIE-LCHlch(14.98, 36.90, 313.27°)
OKLaboklab(27.8% 0.0552 -0.076)
OKLCHoklch(27.8% 0.094 306)
XYZxyz(3.0470, 1.9052, 7.0433)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34184C #304C18
analogous
#1A184C #34184C #4C184A
triadic
#34184C #4C3418 #184C34
tetradic
#34184C #4C1A18 #304C18 #184A4C
square
#34184C #4C1A18 #304C18 #184A4C
split-complementary
#34184C #4A4C18 #184C1A
monochromatic
#100717 #14091D #34184C #54277B #7435A9

Accessibility & contrast

On white

15.21
#34184C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#34184C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34184C
15.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34184C#FFFFFF#000000##FFFFFF
##34184C1.0015.211.3815.21
#FFFFFF15.211.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254E
Deuteranopia (green-blind)
#0D264B
Tritanopia (blue-blind)
#30232F
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34184c;
/* rgb */ color: rgb(52, 24, 76);
/* oklch */ color: oklch(27.8% 0.094 306.0);
Tailwind
colors: {
  custom: {
    50: '#6e577e',
    500: '#34184c',
    950: '#000000',
  },
}
SCSS
$custom: #34184c;
$custom-light: #6e577e;
$custom-dark: #000000;
JSON
{
  "hex": "#34184c",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 76
  },
  "hsl": {
    "h": 272.308,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27798,
    "c": 0.09389,
    "h": 306
  },
  "luminance": 0.01905
}

Semantic roles & 50–950 ramp

primary
#34184C
secondary
#5D833D
accent
#DB4C8E
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #34184C

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

Preview Lab → · Contrast checker → · Palette generator →

#34184C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva