#34246B#34246B

#34246B is a dark, moderate violet. Relative luminance 0.031; OKLCH L 32.4% C 0.118 H 288.4°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#34246B
RGBrgb(52, 36, 107)
HSLhsl(254, 50%, 28%)
HSVhsv(254, 66%, 42%)
CMYKcmyk(51.4%, 66.4%, 0%, 58%)
CIE-LABlab(20.26, 27.25, -39.03)
CIE-LCHlch(20.26, 47.60, 304.92°)
OKLaboklab(32.41% 0.0372 -0.1117)
OKLCHoklch(32.41% 0.118 288.4)
XYZxyz(4.7001, 3.0532, 14.2487)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34246B #5B6B24
analogous
#24376B #34246B #57246B
triadic
#34246B #6B3424 #246B34
tetradic
#34246B #6B2437 #5B6B24 #246B57
square
#34246B #6B2437 #5B6B24 #246B57
split-complementary
#34246B #6B5724 #376B24
monochromatic
#0B0817 #1E153D #34246B #4A3399 #6348C1

Accessibility & contrast

On white

13.04
#34246B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#34246B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34246B
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34246B#FFFFFF#000000##FFFFFF
##34246B1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#213544
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #34246b;
/* rgb */ color: rgb(52, 36, 107);
/* oklch */ color: oklch(32.4% 0.118 288.4);
Tailwind
colors: {
  custom: {
    50: '#715f96',
    500: '#34246b',
    950: '#000000',
  },
}
SCSS
$custom: #34246b;
$custom-light: #715f96;
$custom-dark: #000000;
JSON
{
  "hex": "#34246b",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 107
  },
  "hsl": {
    "h": 253.521,
    "s": 49.65,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32413,
    "c": 0.11777,
    "h": 288.4
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#34246B
secondary
#8C9E4D
accent
#D94FBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #34246B

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

Preview Lab → · Contrast checker → · Palette generator →

#34246B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva