#34237A#34237A

#34237A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.140 H 285.0°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#34237A
RGBrgb(52, 35, 122)
HSLhsl(252, 55%, 31%)
HSVhsv(252, 71%, 48%)
CMYKcmyk(57.4%, 71.3%, 0%, 52.2%)
CIE-LABlab(21.35, 32.76, -46.90)
CIE-LCHlch(21.35, 57.21, 304.93°)
OKLaboklab(33.61% 0.0362 -0.1349)
OKLCHoklch(33.61% 0.14 285)
XYZxyz(5.5290, 3.3370, 18.7613)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34237A #697A23
analogous
#233D7A #34237A #5F237A
triadic
#34237A #7A3423 #237A34
tetradic
#34237A #7A233D #697A23 #237A5F
square
#34237A #7A233D #697A23 #237A5F
split-complementary
#34237A #7A5F23 #3D7A23
monochromatic
#0B081B #20154A #34237A #4831AA #654CCC

Accessibility & contrast

On white

12.59
#34237A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#34237A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34237A
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34237A#FFFFFF#000000##FFFFFF
##34237A1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003178
Tritanopia (blue-blind)
#143A4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34237a;
/* rgb */ color: rgb(52, 35, 122);
/* oklch */ color: oklch(33.6% 0.140 285.0);
Tailwind
colors: {
  custom: {
    50: '#745fa1',
    500: '#34237a',
    950: '#000000',
  },
}
SCSS
$custom: #34237a;
$custom-light: #745fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#34237a",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 122
  },
  "hsl": {
    "h": 251.724,
    "s": 55.414,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33611,
    "c": 0.13964,
    "h": 285
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#34237A
secondary
#9AAD4C
accent
#DF49C1
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #34237A

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

Preview Lab → · Contrast checker → · Palette generator →

#34237A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva