#3A238C#3A238C

#3A238C is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.162 H 284.8°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#3A238C
RGBrgb(58, 35, 140)
HSLhsl(253, 60%, 34%)
HSVhsv(253, 75%, 55%)
CMYKcmyk(58.6%, 75%, 0%, 45.1%)
CIE-LABlab(23.65, 39.44, -54.43)
CIE-LCHlch(23.65, 67.22, 305.93°)
OKLaboklab(35.92% 0.0415 -0.1567)
OKLCHoklch(35.92% 0.162 284.8)
XYZxyz(7.0781, 3.9946, 25.2039)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A238C #758C23
analogous
#23418C #3A238C #6F238C
triadic
#3A238C #8C3A23 #238C3A
tetradic
#3A238C #8C2341 #758C23 #238C6F
square
#3A238C #8C2341 #758C23 #238C6F
split-complementary
#3A238C #8C6F23 #418C23
monochromatic
#110B2A #26175B #3A238C #4E2FBD #7155D4

Accessibility & contrast

On white

11.67
#3A238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#3A238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A238C
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A238C#FFFFFF#000000##FFFFFF
##3A238C1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00358A
Tritanopia (blue-blind)
#0F4055
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a238c;
/* rgb */ color: rgb(58, 35, 140);
/* oklch */ color: oklch(35.9% 0.162 284.8);
Tailwind
colors: {
  custom: {
    50: '#7a61af',
    500: '#3a238c',
    950: '#000000',
  },
}
SCSS
$custom: #3a238c;
$custom-light: #7a61af;
$custom-dark: #000000;
JSON
{
  "hex": "#3a238c",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 253.143,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35923,
    "c": 0.16213,
    "h": 284.8
  },
  "luminance": 0.03995
}

Semantic roles & 50–950 ramp

primary
#3A238C
secondary
#A2B852
accent
#E345C0
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #3A238C

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

Preview Lab → · Contrast checker → · Palette generator →

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