#3B188F#3B188F

#3B188F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.176 H 286.4°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#3B188F
RGBrgb(59, 24, 143)
HSLhsl(258, 71%, 33%)
HSVhsv(258, 83%, 56%)
CMYKcmyk(58.7%, 83.2%, 0%, 43.9%)
CIE-LABlab(22.18, 45.87, -58.72)
CIE-LCHlch(22.18, 74.51, 308.00°)
OKLaboklab(35.01% 0.0499 -0.1691)
OKLCHoklch(35.01% 0.176 286.4)
XYZxyz(7.0867, 3.5658, 26.2961)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B188F #6C8F18
analogous
#18318F #3B188F #76188F
triadic
#3B188F #8F3B18 #188F3B
tetradic
#3B188F #8F1831 #6C8F18 #188F76
square
#3B188F #8F1831 #6C8F18 #188F76
split-complementary
#3B188F #8F7618 #318F18
monochromatic
#100626 #250F5B #3B188F #5121C3 #7042DF

Accessibility & contrast

On white

12.26
#3B188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3B188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B188F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B188F#FFFFFF#000000##FFFFFF
##3B188F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#103C55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3b188f;
/* rgb */ color: rgb(59, 24, 143);
/* oklch */ color: oklch(35.0% 0.176 286.4);
Tailwind
colors: {
  custom: {
    50: '#7c5bb1',
    500: '#3b188f',
    950: '#000000',
  },
}
SCSS
$custom: #3b188f;
$custom-light: #7c5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b188f",
  "rgb": {
    "r": 59,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 257.647,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35012,
    "c": 0.17633,
    "h": 286.4
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#3B188F
secondary
#9BC043
accent
#EE3AB9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B188F

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

Preview Lab → · Contrast checker → · Palette generator →

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