#3A237F#3A237F

#3A237F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.146 H 287.7°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#3A237F
RGBrgb(58, 35, 127)
HSLhsl(255, 57%, 32%)
HSVhsv(255, 72%, 50%)
CMYKcmyk(54.3%, 72.4%, 0%, 50.2%)
CIE-LABlab(22.42, 35.40, -48.29)
CIE-LCHlch(22.42, 59.88, 306.24°)
OKLaboklab(34.67% 0.0444 -0.1387)
OKLCHoklch(34.67% 0.146 287.7)
XYZxyz(6.1756, 3.6336, 20.4505)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A237F #687F23
analogous
#233A7F #3A237F #68237F
triadic
#3A237F #7F3A23 #237F3A
tetradic
#3A237F #7F233A #687F23 #237F68
square
#3A237F #7F233A #687F23 #237F68
split-complementary
#3A237F #7F6823 #3A7F23
monochromatic
#0E091F #24164F #3A237F #5030AF #6E4ECE

Accessibility & contrast

On white

12.16
#3A237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#3A237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A237F
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A237F#FFFFFF#000000##FFFFFF
##3A237F1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00337D
Tritanopia (blue-blind)
#1F3B4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #3a237f;
/* rgb */ color: rgb(58, 35, 127);
/* oklch */ color: oklch(34.7% 0.146 287.7);
Tailwind
colors: {
  custom: {
    50: '#7860a5',
    500: '#3a237f',
    950: '#000000',
  },
}
SCSS
$custom: #3a237f;
$custom-light: #7860a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a237f",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 255,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3467,
    "c": 0.14566,
    "h": 287.7
  },
  "luminance": 0.03634
}

Semantic roles & 50–950 ramp

primary
#3A237F
secondary
#98B14C
accent
#E048BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3A237F

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

Preview Lab → · Contrast checker → · Palette generator →

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