#45167B#45167B

#45167B is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.156 H 298.5°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#45167B
RGBrgb(69, 22, 123)
HSLhsl(268, 70%, 28%)
HSVhsv(268, 82%, 48%)
CMYKcmyk(43.9%, 82.1%, 0%, 51.8%)
CIE-LABlab(21.09, 42.64, -47.88)
CIE-LCHlch(21.09, 64.11, 311.69°)
OKLaboklab(33.92% 0.0745 -0.137)
OKLCHoklch(33.92% 0.156 298.5)
XYZxyz(6.3154, 3.2690, 19.0333)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#45167B #4C7B16
analogous
#16197B #45167B #77167B
triadic
#45167B #7B4516 #167B45
tetradic
#45167B #7B1619 #4C7B16 #167B77
square
#45167B #7B1619 #4C7B16 #167B77
split-complementary
#45167B #7B7716 #197B16
monochromatic
#0F051A #280D47 #45167B #621FAF #8031DA

Accessibility & contrast

On white

12.70
#45167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#45167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #45167B
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##45167B#FFFFFF#000000##FFFFFF
##45167B1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#373249
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #45167b;
/* rgb */ color: rgb(69, 22, 123);
/* oklch */ color: oklch(33.9% 0.156 298.5);
Tailwind
colors: {
  custom: {
    50: '#7f5aa2',
    500: '#45167b',
    950: '#000000',
  },
}
SCSS
$custom: #45167b;
$custom-light: #7f5aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#45167b",
  "rgb": {
    "r": 69,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 267.921,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33923,
    "c": 0.15599,
    "h": 298.5
  },
  "luminance": 0.03269
}

Semantic roles & 50–950 ramp

primary
#45167B
secondary
#7AB03D
accent
#EC3B9A
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #45167B

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

Preview Lab → · Contrast checker → · Palette generator →

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