#33175F#33175F

#33175F is a dark, moderate violet. Relative luminance 0.021; OKLCH L 29.2% C 0.120 H 295.8°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#33175F
RGBrgb(51, 23, 95)
HSLhsl(263, 61%, 23%)
HSVhsv(263, 76%, 37%)
CMYKcmyk(46.3%, 75.8%, 0%, 62.7%)
CIE-LABlab(16.22, 31.14, -37.71)
CIE-LCHlch(16.22, 48.91, 309.54°)
OKLaboklab(29.16% 0.0522 -0.1079)
OKLCHoklch(29.16% 0.12 295.8)
XYZxyz(3.7366, 2.1427, 11.0410)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#33175F #435F17
analogous
#171F5F #33175F #57175F
triadic
#33175F #5F3317 #175F33
tetradic
#33175F #5F171F #435F17 #175F57
square
#33175F #5F171F #435F17 #175F57
split-complementary
#33175F #5F5717 #1F5F17
monochromatic
#0D0619 #190B2E #33175F #4D2390 #682FC2

Accessibility & contrast

On white

14.70
#33175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#33175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #33175F
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##33175F#FFFFFF#000000##FFFFFF
##33175F1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002961
Deuteranopia (green-blind)
#00275E
Tritanopia (blue-blind)
#272939
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #33175f;
/* rgb */ color: rgb(51, 23, 95);
/* oklch */ color: oklch(29.2% 0.120 295.8);
Tailwind
colors: {
  custom: {
    50: '#6f578d',
    500: '#33175f',
    950: '#000000',
  },
}
SCSS
$custom: #33175f;
$custom-light: #6f578d;
$custom-dark: #000000;
JSON
{
  "hex": "#33175f",
  "rgb": {
    "r": 51,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 263.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.29156,
    "c": 0.11985,
    "h": 295.8
  },
  "luminance": 0.02143
}

Semantic roles & 50–950 ramp

primary
#33175F
secondary
#73963C
accent
#E444A6
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #33175F

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

Preview Lab → · Contrast checker → · Palette generator →

#33175F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva