#3A3198#3A3198

#3A3198 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.2% C 0.161 H 279.8°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#3A3198
RGBrgb(58, 49, 152)
HSLhsl(245, 51%, 39%)
HSVhsv(245, 68%, 60%)
CMYKcmyk(61.8%, 67.8%, 0%, 40.4%)
CIE-LABlab(27.74, 35.12, -55.13)
CIE-LCHlch(27.74, 65.37, 302.50°)
OKLaboklab(39.19% 0.0276 -0.1588)
OKLCHoklch(39.19% 0.161 279.8)
XYZxyz(8.5089, 5.3625, 30.2864)
Luminance0.0536 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3198 #8F9831
analogous
#315C98 #3A3198 #6E3198
triadic
#3A3198 #983A31 #31983A
tetradic
#3A3198 #98315C #8F9831 #31986E
square
#3A3198 #98315C #8F9831 #31986E
split-complementary
#3A3198 #986E31 #5C9831
monochromatic
#17133B #28226A #3A3198 #4F44C3 #7A72D2

Accessibility & contrast

On white

10.13
#3A3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3A3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3198
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3198#FFFFFF#000000##FFFFFF
##3A31981.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459B
Deuteranopia (green-blind)
#003D96
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3a3198;
/* rgb */ color: rgb(58, 49, 152);
/* oklch */ color: oklch(39.2% 0.161 279.8);
Tailwind
colors: {
  custom: {
    50: '#7b6ab7',
    500: '#3a3198',
    950: '#000000',
  },
}
SCSS
$custom: #3a3198;
$custom-light: #7b6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3198",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 245.243,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.39192,
    "c": 0.1612,
    "h": 279.8
  },
  "luminance": 0.05363
}

Semantic roles & 50–950 ramp

primary
#3A3198
secondary
#B3B96B
accent
#DB4DCE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A3198

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

Preview Lab → · Contrast checker → · Palette generator →

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