#3A237D#3A237D

#3A237D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.143 H 288.2°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#3A237D
RGBrgb(58, 35, 125)
HSLhsl(255, 56%, 31%)
HSVhsv(255, 72%, 49%)
CMYKcmyk(53.6%, 72%, 0%, 51%)
CIE-LABlab(22.24, 34.78, -47.33)
CIE-LCHlch(22.24, 58.73, 306.31°)
OKLaboklab(34.48% 0.0448 -0.1359)
OKLCHoklch(34.48% 0.143 288.2)
XYZxyz(6.0465, 3.5820, 19.7709)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A237D #667D23
analogous
#23397D #3A237D #67237D
triadic
#3A237D #7D3A23 #237D3A
tetradic
#3A237D #7D2339 #667D23 #237D67
square
#3A237D #7D2339 #667D23 #237D67
split-complementary
#3A237D #7D6723 #397D23
monochromatic
#0E081D #24164D #3A237D #5030AD #6E4DCD

Accessibility & contrast

On white

12.23
#3A237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A237D
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A237D#FFFFFF#000000##FFFFFF
##3A237D1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#213A4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a237d;
/* rgb */ color: rgb(58, 35, 125);
/* oklch */ color: oklch(34.5% 0.143 288.2);
Tailwind
colors: {
  custom: {
    50: '#7760a3',
    500: '#3a237d',
    950: '#000000',
  },
}
SCSS
$custom: #3a237d;
$custom-light: #7760a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a237d",
  "rgb": {
    "r": 58,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 255.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34483,
    "c": 0.14308,
    "h": 288.2
  },
  "luminance": 0.03582
}

Semantic roles & 50–950 ramp

primary
#3A237D
secondary
#96AF4C
accent
#E048B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3A237D

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

Preview Lab → · Contrast checker → · Palette generator →

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