#34245C#34245C

#34245C is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.2% C 0.096 H 293.2°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#34245C
RGBrgb(52, 36, 92)
HSLhsl(257, 44%, 25%)
HSVhsv(257, 61%, 36%)
CMYKcmyk(43.5%, 60.9%, 0%, 63.9%)
CIE-LABlab(19.07, 22.42, -31.09)
CIE-LCHlch(19.07, 38.33, 305.80°)
OKLaboklab(31.17% 0.0379 -0.0884)
OKLCHoklch(31.17% 0.096 293.2)
XYZxyz(3.9783, 2.7644, 10.4471)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34245C #4C5C24
analogous
#24305C #34245C #50245C
triadic
#34245C #5C3424 #245C34
tetradic
#34245C #5C2430 #4C5C24 #245C50
square
#34245C #5C2430 #4C5C24 #245C50
split-complementary
#34245C #5C5024 #305C24
monochromatic
#0C0916 #1B1330 #34245C #4D3588 #6646B4

Accessibility & contrast

On white

13.52
#34245C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#34245C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34245C
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34245C#FFFFFF#000000##FFFFFF
##34245C1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062F5E
Deuteranopia (green-blind)
#0B2D5B
Tritanopia (blue-blind)
#29303C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34245c;
/* rgb */ color: rgb(52, 36, 92);
/* oklch */ color: oklch(31.2% 0.096 293.2);
Tailwind
colors: {
  custom: {
    50: '#6f5f8a',
    500: '#34245c',
    950: '#000000',
  },
}
SCSS
$custom: #34245c;
$custom-light: #6f5f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#34245c",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 92
  },
  "hsl": {
    "h": 257.143,
    "s": 43.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31174,
    "c": 0.09615,
    "h": 293.2
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#34245C
secondary
#7C904C
accent
#D354AF
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07040C
muted
#7A797D

Preview Lab

Preview with #34245C

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

Preview Lab → · Contrast checker → · Palette generator →

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