#45348C#45348C

#45348C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.6% C 0.140 H 287.1°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#45348C
RGBrgb(69, 52, 140)
HSLhsl(252, 46%, 38%)
HSVhsv(252, 63%, 55%)
CMYKcmyk(50.7%, 62.9%, 0%, 45.1%)
CIE-LABlab(28.42, 31.39, -46.61)
CIE-LCHlch(28.42, 56.19, 303.96°)
OKLaboklab(39.61% 0.041 -0.1334)
OKLCHoklch(39.61% 0.14 287.1)
XYZxyz(8.4145, 5.6143, 25.4461)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45348C #7B8C34
analogous
#344F8C #45348C #71348C
triadic
#45348C #8C4534 #348C45
tetradic
#45348C #8C344F #7B8C34 #348C71
square
#45348C #8C344F #7B8C34 #348C71
split-complementary
#45348C #8C7134 #4F8C34
monochromatic
#191333 #2F235F #45348C #5B45B9 #8270CA

Accessibility & contrast

On white

9.89
#45348C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#45348C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45348C
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45348C#FFFFFF#000000##FFFFFF
##45348C1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#00418A
Tritanopia (blue-blind)
#2C495B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #45348c;
/* rgb */ color: rgb(69, 52, 140);
/* oklch */ color: oklch(39.6% 0.140 287.1);
Tailwind
colors: {
  custom: {
    50: '#7f6cae',
    500: '#45348c',
    950: '#000000',
  },
}
SCSS
$custom: #45348c;
$custom-light: #7f6cae;
$custom-dark: #000000;
JSON
{
  "hex": "#45348c",
  "rgb": {
    "r": 69,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 251.591,
    "s": 45.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39612,
    "c": 0.13958,
    "h": 287.1
  },
  "luminance": 0.05615
}

Semantic roles & 50–950 ramp

primary
#45348C
secondary
#A4B26A
accent
#D552BC
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0710
muted
#7C7A7F

Preview Lab

Preview with #45348C

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

Preview Lab → · Contrast checker → · Palette generator →

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