#3A3199#3A3199

#3A3199 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.163 H 279.7°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#3A3199
RGBrgb(58, 49, 153)
HSLhsl(245, 51%, 40%)
HSVhsv(245, 68%, 60%)
CMYKcmyk(62.1%, 68%, 0%, 40%)
CIE-LABlab(27.83, 35.46, -55.60)
CIE-LCHlch(27.83, 65.94, 302.53°)
OKLaboklab(39.28% 0.0274 -0.1602)
OKLCHoklch(39.28% 0.163 279.7)
XYZxyz(8.5912, 5.3954, 30.7195)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3199 #909931
analogous
#315C99 #3A3199 #6E3199
triadic
#3A3199 #993A31 #31993A
tetradic
#3A3199 #99315C #909931 #31996E
square
#3A3199 #99315C #909931 #31996E
split-complementary
#3A3199 #996E31 #5C9931
monochromatic
#17133C #28226B #3A3199 #4F44C3 #7B72D2

Accessibility & contrast

On white

10.10
#3A3199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3A3199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3199
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3199#FFFFFF#000000##FFFFFF
##3A31991.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #3a3199;
/* rgb */ color: rgb(58, 49, 153);
/* oklch */ color: oklch(39.3% 0.163 279.7);
Tailwind
colors: {
  custom: {
    50: '#7b6ab8',
    500: '#3a3199',
    950: '#000000',
  },
}
SCSS
$custom: #3a3199;
$custom-light: #7b6ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3199",
  "rgb": {
    "r": 58,
    "g": 49,
    "b": 153
  },
  "hsl": {
    "h": 245.192,
    "s": 51.485,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39284,
    "c": 0.16252,
    "h": 279.7
  },
  "luminance": 0.05396
}

Semantic roles & 50–950 ramp

primary
#3A3199
secondary
#B3BA6C
accent
#DB4DCF
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #3A3199

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

Preview Lab → · Contrast checker → · Palette generator →

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