#3B175E#3B175E

#3B175E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.120 H 302.9°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#3B175E
RGBrgb(59, 23, 94)
HSLhsl(270, 61%, 23%)
HSVhsv(270, 76%, 37%)
CMYKcmyk(37.2%, 75.5%, 0%, 63.1%)
CIE-LABlab(17.23, 32.55, -35.36)
CIE-LCHlch(17.23, 48.06, 312.63°)
OKLaboklab(30.09% 0.0652 -0.1006)
OKLCHoklch(30.09% 0.12 302.9)
XYZxyz(4.1299, 2.3507, 10.8237)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B175E #3A5E17
analogous
#18175E #3B175E #5E175D
triadic
#3B175E #5E3B17 #175E3B
tetradic
#3B175E #5E1817 #3A5E17 #175D5E
square
#3B175E #5E1817 #3A5E17 #175D5E
split-complementary
#3B175E #5D5E17 #175E18
monochromatic
#0F0619 #1C0B2D #3B175E #5A238F #792FC0

Accessibility & contrast

On white

14.28
#3B175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#3B175E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B175E
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B175E#FFFFFF#000000##FFFFFF
##3B175E1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#342838
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3b175e;
/* rgb */ color: rgb(59, 23, 94);
/* oklch */ color: oklch(30.1% 0.120 302.9);
Tailwind
colors: {
  custom: {
    50: '#75578c',
    500: '#3b175e',
    950: '#000000',
  },
}
SCSS
$custom: #3b175e;
$custom-light: #75578c;
$custom-dark: #000000;
JSON
{
  "hex": "#3b175e",
  "rgb": {
    "r": 59,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 270.423,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30091,
    "c": 0.11993,
    "h": 302.9
  },
  "luminance": 0.02351
}

Semantic roles & 50–950 ramp

primary
#3B175E
secondary
#68953C
accent
#E44493
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3B175E

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

Preview Lab → · Contrast checker → · Palette generator →

#3B175E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva